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
- idstringUnique identifier for the image.
- objectstringAlways
image. - statusstring
pendingordrawingwhile it is made, thensucceededorfailed.pendingdrawingsucceededfailed - urlstring or nullThe image's URL once it
succeeded, null before. - aspect_ratiostringIts shape, like
16:9. - promptstringWhat was asked.
- errorobject or nullWhy it
failed, with itscodeandmessage. Nothing is charged for a failed image. - ai_credits_chargedintegerThe credits it cost, taken only once it is made.
- created_atstringWhen it was asked, ISO 8601.
- finished_atstring or nullWhen 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
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
- promptstringRequiredWhat 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 stringsPublic HTTPS URLs of pictures to change or follow, a photo, a logo, a product or a style, 6 at most. Say in
promptwhat to do with each. - aspect_ratiostringIts shape.
16:9for a cover, the default,1:1or4:5for a post,9:16for 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.falsefor a photo or a picture with its own colors.
Returns
The image object.
Errors
- A required parameter is missing.
paramnames it. - A parameter has a value the API does not accept.
paramnames it. - The body has a field this endpoint does not take.
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
Returns an image as it stands, to follow one still being drawn.
Path parameters
- image_idstringRequiredThe image's ID, as Create an image returns it.
Returns
The image object.
Errors
- No image with this ID in the key's Sublaunch.
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"
}