text-to-image
Create image from text - Recraft V4
Generate an image from a text prompt using Recraft V4.
Key Features:
- Best-in-class rendering of legible text inside the image
- Design-oriented output: posters, signage, packaging, editorial layouts
- Eleven fixed aspect ratios, from 768x1344 to 1536x768
Best for:
- Designs whose wording must be readable and correctly spelled
- Brand and marketing assets with typographic weight
Output: one image per request, delivered as a URL in the task's generated array. Exact sizes are listed under aspect_ratio.
Credits: a flat price per image. Recraft V4 Pro renders the same sizes at twice the linear dimensions for a higher 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
Request
- Base URL: https://api.magnific.com
- URL: https://api.magnific.com/v1/ai/text-to-image/recraft-v4
- 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",
"enhance_prompt": true,
"webhook_url": "https://www.example.com/webhook"
}Response
OK - The request has succeeded and the Recraft V4 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.