text-to-image
Create image from text - Recraft V4.1
Generate an image from a text prompt using Recraft V4.1, the latest Recraft generation.
Key Features:
- Improved text rendering and design over V4
- tier selects price and output size: mid matches V4, pro matches V4 Pro
- variant selects how literally the model follows the prompt: standard applies its own art direction, utility renders neutrally
Best for:
- standard: finished design pieces
- utility: diagrams, wireframes, UI mockups and any asset that must follow the prompt exactly
Output: one image per request, delivered as a URL in the task's generated array. Exact sizes are listed under aspect_ratio.
Credits: tier: mid is billed as Recraft V4 and tier: pro as Recraft V4 Pro. variant does not affect the price.
The request is processed asynchronously: the endpoint returns a task id immediately. Retrieve the result by polling the task endpoint or by providing an optional webhook_url.
post/v1/ai/text-to-image/recraft-v4-1
Request
- Base URL: https://api.magnific.com
- URL: https://api.magnific.com/v1/ai/text-to-image/recraft-v4-1
- Auth: API key in header x-magnific-api-key
Request body
Example request
{
"prompt": "A storefront sign that reads OPEN DAILY 9AM, flat vector poster style",
"aspect_ratio": "square_1_1",
"tier": "mid",
"variant": "standard",
"enhance_prompt": true,
"webhook_url": "https://www.example.com/webhook"
}Response
OK - The request has succeeded and the Recraft V4.1 process has started.
Example response
{
"data": {
"generated": [
"https://openapi-generator.tech",
"https://openapi-generator.tech"
],
"task_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"status": "CREATED"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.