API reference

Images

An image is drawn by AI from a few precise sentences, with your pictures to follow or change when you give some. It is kept on Sublaunch and its URL is yours to use.

It is not on your Sublaunch yet. Put its URL where it goes with that place's own endpoint, like a course's cover_url, an access's cover_url, the Sublaunch's cover_url, a post's media or a block of Content.

The image object

An image drawn by AI for your Sublaunch, kept on Sublaunch.

Attributes

  • idstring
    Unique identifier for the image.
  • objectstring
    Always image.
  • statusstring
    pending or drawing while it is made, then succeeded or failed.
    pendingdrawingsucceededfailed
  • urlstring or null
    The image's URL once it succeeded, null before.
  • aspect_ratiostring
    Its shape, like 16:9.
  • promptstring
    What was asked.
  • errorobject or null
    Why it failed, with its code and message. Nothing is charged for a failed image.
  • ai_credits_chargedinteger
    The credits it cost, taken only once it is made.
  • created_atstring
    When it was asked, ISO 8601.
  • finished_atstring or null
    When it was made or failed, ISO 8601.
Image object
{
  "id": "img8Kq2Lm",
  "object": "image",
  "status": "succeeded",
  "url": "https://upcdn.io/W142hYH/raw/ai/higherlow-cover-img8Kq2Lm.png",
  "aspect_ratio": "16:9",
  "prompt": "A calm trading desk at dawn, two screens with green candles, soft blue light, photo, no words.",
  "error": null,
  "ai_credits_charged": 0,
  "created_at": "2026-11-30T03:20:11.000Z",
  "finished_at": "2026-11-30T03:20:39.000Z"
}

Create an image

POST/v1/imageswrite scopeMCPcreate_image

Draws a new image. The answer usually comes with the image itself, in about 30 seconds. When its status is still pending or drawing, retrieve it 15 seconds later.

Body parameters

  • promptstringRequired
    What to draw, in English, a few precise sentences. The subject and what it does, the style, the mood, the light and colors, the framing. A cover has one clear subject and no words.
  • reference_imagesarray of strings
    Public HTTPS URLs of pictures to change or follow, a photo, a logo, a product or a style, 6 at most. Say in prompt what to do with each.
  • aspect_ratiostring
    Its shape. 16:9 for a cover, the default, 1:1 or 4:5 for a post, 9:16 for a story.
    16:91:14:53:49:163:22:34:321:9
  • brand_colorsboolean
    true, the default, uses the Sublaunch's own colors where colors are free. false for a photo or a picture with its own colors.

Returns

The image object.

Errors

POST/v1/images
curl -X POST https://api.sublaunch.com/v1/images \
  -H "Authorization: Bearer $SUBLAUNCH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A calm trading desk at dawn, two screens with green candles, soft blue light, photo, no words.",
    "aspect_ratio": "16:9"
  }'
Response200
{
  "id": "img8Kq2Lm",
  "object": "image",
  "status": "succeeded",
  "url": "https://upcdn.io/W142hYH/raw/ai/higherlow-cover-img8Kq2Lm.png",
  "aspect_ratio": "16:9",
  "prompt": "A calm trading desk at dawn, two screens with green candles, soft blue light, photo, no words.",
  "error": null,
  "ai_credits_charged": 0,
  "created_at": "2026-11-30T03:20:11.000Z",
  "finished_at": "2026-11-30T03:20:39.000Z"
}

Retrieve an image

GET/v1/images/:image_idread scopeMCPget_image

Returns an image as it stands, to follow one still being drawn.

Path parameters

Returns

The image object.

Errors

GET/v1/images/:image_id
curl https://api.sublaunch.com/v1/images/img8Kq2Lm \
  -H "Authorization: Bearer $SUBLAUNCH_API_KEY"
Response200
{
  "id": "img8Kq2Lm",
  "object": "image",
  "status": "succeeded",
  "url": "https://upcdn.io/W142hYH/raw/ai/higherlow-cover-img8Kq2Lm.png",
  "aspect_ratio": "16:9",
  "prompt": "A calm trading desk at dawn, two screens with green candles, soft blue light, photo, no words.",
  "error": null,
  "ai_credits_charged": 0,
  "created_at": "2026-11-30T03:20:11.000Z",
  "finished_at": "2026-11-30T03:20:39.000Z"
}