Breaking News

Render one per story from your publishing system, with the headline, text, cover image, source and a QR code to the follow-up page.

Image, 1080 × 1080, 1 credit

Output

Breaking News, rendered by oJo with its first sample

Variables

  • coverImagetext
    https://images.pexels.com/photos/158826/structure-light-led-movement-158826.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1
  • followUrltext
    https://news.example.com/quantum-breakthrough
  • headlinetext
    Major Technology Breakthrough Announced
  • sourcetext
    Global News Network
  • timestamptext
    2024-11-21T15:30:00
  • updates[].contenttext
    Scientists reveal groundbreaking quantum computing advancement that could revolutionize data processing.
  • updates[].timestamptext
    2024-11-21T15:30:00

Send any of these in modify. Anything you leave out prints the sample value, and the response lists it in warnings.

Render it

Save the template to your account first. Saving gives you its ID.

curl --request POST \
  --url https://api.ojo.so/v1/image/template \
  --header 'Authorization: Bearer <your API key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "templateId": "<YOUR_TEMPLATE_ID>",
  "modify": {
    "coverImage": "https://images.pexels.com/photos/158826/structure-light-led-movement-158826.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1",
    "source": "Global News Network",
    "timestamp": "2024-11-21T15:30:00",
    "headline": "Major Technology Breakthrough Announced"
  },
  "viewportWidth": 1080,
  "viewportHeight": 1080
}'

What's included

Related templates

All templates
Breaking News - oJo