curl --request POST \
--url https://api.vidgo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "recraft/v4.1-pro/text-to-image",
"input": {
"prompt": "Large-format poster of a desert observatory under the Milky Way, a lone astronomer with a red flashlight, fine engraved detail",
"size": "16:9"
}
}
'{
"code": 200,
"data": {
"task_id": "task-example-001",
"status": "not_started",
"created_time": "2026-11-25T10:30:00"
}
}{
"detail": "prompt is required"
}{
"detail": "prompt is required"
}Recraft
Recraft V4.1 Pro Text to Image
The Recraft V4.1 Pro Text to Image API creates one high-resolution, finely detailed image per prompt, with 5 aspect ratios and up to 10 preferred colors.
POST
/
api
/
generate
/
submit
curl --request POST \
--url https://api.vidgo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "recraft/v4.1-pro/text-to-image",
"input": {
"prompt": "Large-format poster of a desert observatory under the Milky Way, a lone astronomer with a red flashlight, fine engraved detail",
"size": "16:9"
}
}
'{
"code": 200,
"data": {
"task_id": "task-example-001",
"status": "not_started",
"created_time": "2026-11-25T10:30:00"
}
}{
"detail": "prompt is required"
}{
"detail": "prompt is required"
}- After submission, a
task_idwill be returned. If you provided acallback_url, when the task status becomesfinishedorfailed, a POST request will be sent to thecallback_url. - Regardless of whether
callback_urlis provided, you can retrieve the result through the unified Query Task Status endpoint.
Models
- recraft/v4.1-pro/text-to-image — Text-to-image with Recraft V4.1 Pro, one high-resolution image per request.
Features
- Text-to-image from prompts up to 10,000 characters.
- Higher resolution and finer detail for large, print-ready visuals.
- Five aspect ratios:
1:1,4:3,3:4,16:9,9:16. - A preferred color palette of up to 10 RGB colors, plus a preferred background color.
- One image per request at a flat per-request rate.
Required parameters
prompt(string): Description of the image. 1–10,000 characters, with at least one non-whitespace character.
Optional parameters
size(string): Aspect ratio:1:1,4:3,3:4,16:9or9:16. Default1:1.colors(object[]): Preferred color palette, up to 10 colors. Each color is an object such as{"r": 18, "g": 52, "b": 86}with integers from 0 to 255.background_color(object): Preferred background color as one RGB object with integerr,gandbfrom 0 to 255.
Output
The finished task returns one image in thefiles array of Query Task Status and the callback payload.
Examples
- Detailed poster: a desert observatory at night,
16:9. - Packaging art with palette and callback: a
3:4tea tin label with threecolors, abackground_colorand acallback_url.
Notes
- Each request returns exactly one image.
inputaccepts the fields listed above; other fields return 400. Putmodelandcallback_urlat the request root, next toinput. - Each RGB object uses exactly the keys
r,gandb, each an integer from 0 to 255. Other color values, or more than 10 entries incolors, return 400. - Each request is billed at a flat rate for this model ID;
size,colorsandbackground_colorkeep the price the same. Credits are reserved at submission, and a failed task is refunded in full. See the pricing page for current rates.
Body
application/json