Skip to content

Recraft V4 Pro Vector

Generates images from a text prompt.

Model ID recraft-v4-pro-vector
Task text-to-image
Output image
Family Recraft
Status Active

Prices are live, so this page does not show them. GET /v1/models/recraft-v4-pro-vector returns the published price (price), and POST /v1/quotes returns the binding maximum for one request, with the processor that will run it. You are never charged more than the quoted maximum, and failed work is free. See Pricing and quotes.

Send these in input. Omitted parameters take their default; unknown parameters are refused with 422 parameter_unknown. The same schema is input_schema in GET /v1/models/recraft-v4-pro-vector.

Name Type Default Allowed Required Description
prompt string 1 to 10000 characters Yes Describe the image: subject, setting, style, light and any text it should show.
aspect_ratio string 1:1 14 values, listed below No Frame shape of the image.
colors string Up to 64 characters No Up to five preferred colours as hex values, separated by commas (for example #DB2F00, #1E2A44). Leave empty for none.
background_color string Up to 9 characters No A preferred background colour as a hex value (for example #FFFFFF). Leave empty for none.

1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, 2:1, 1:2, 5:4, 4:5, 14:10, 10:14, 6:10

Price the request first. A quote is free and starts nothing:

Quote
curl https://api.halationlab.ai/v1/quotes \
-H "Authorization: Bearer $HALATIONLAB_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d @- <<'JSON'
{
"model": "recraft-v4-pro-vector",
"input": {
"prompt": "A studio photo of a red ceramic mug on a linen tablecloth, soft window light",
"aspect_ratio": "1:1"
}
}
JSON

Then start it, paying at most MAX_COST tokens. If the price is higher, nothing starts and the 402 max_cost_exceeded answer carries the quote:

Generate
MAX_COST=${MAX_COST:?Set MAX_COST to the most you will pay, in tokens}
curl https://api.halationlab.ai/v1/generations \
-H "Authorization: Bearer $HALATIONLAB_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Prefer: wait=60" \
-H "Content-Type: application/json" \
-d @- <<JSON
{
"model": "recraft-v4-pro-vector",
"input": {
"prompt": "A studio photo of a red ceramic mug on a linen tablecloth, soft window light",
"aspect_ratio": "1:1"
},
"max_cost": $MAX_COST
}
JSON