● nureta
Docs
Image

Make an image

Generate one image from a text prompt for $0.05 and download it, with a copy-paste curl example.

This page uses NURETA_URL, NURETA_KEY and the wait_task helper from Get started.

One image costs $0.05, at 2K (default) or 4K.

IMG=$(curl -s -X POST "$NURETA_URL/api/v3/images/generations/tasks" \
  -H "Authorization: Bearer $NURETA_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "seahorse-image",
       "content": [{"type": "text", "text": "a woman in a red dress on a balcony at sunset, photo"}]}')
IMG_ID=$(printf '%s' "$IMG" | jq -r .id)
IMG_DONE=$(wait_task "$NURETA_URL/api/v3/images/generations/tasks/$IMG_ID")
curl -s -o balcony.jpg "$(printf '%s' "$IMG_DONE" | jq -r .content.image_url)"

An image task has no step progress: it is queued, running, then succeeded or failed. To use reference images, add up to 9 image_url items: upload each one as in Image to video, then see the Image reference.