SandBase is live — $1 in free credits on signupStart free ›

Recraft modelsimage generation api

recraft/4.0/style/pro/text-to-image

4.0 Style Pro is Recraft's advanced text-to-image AI model. Create photorealistic images, illustrations, and concept art from natural language descriptions with exceptional detail and prompt adherence.

Input

PNG, JPEG, WebP, or GIF · 20 MiB maximum each

The URLs of the style reference images. Supports PNG, JPG, and WEBP; provide between 1 and 10 images.
An array of preferable colors
The ID of an existing V4 custom style.
Override how closely the generation follows the custom style. Allowed values: precise, flexible.
The preferable background color of the generated images.
The aspect ratio of the generated image. Allowed values: 21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5, 3:4, 2:3, 9:16.
Idle

Example output — click Run to generate your own

API README

Recraft V4 Style Pro Text to Image

Recraft V4 Style Pro Text to Image is the Recraft V4 route for styled text-to-image generation, turning a text prompt and optional reusable style into a production-ready result while keeping the operation distinct from neighboring endpoints. 4.0 Style Pro is Recraft's advanced text-to-image AI model. Create photorealistic images, illustrations, and concept art from natural language descriptions with exceptional detail and prompt adherence. The workflow is designed for creators who need the model’s specific transformation to remain visible in the request, so the source, intended change, and finished artifact can be reviewed as one coherent creative decision.

In practical use, this route exposes background_color, colors, enable_safety_checker, image_size, image_urls, prompt, safety_tolerance, style_id to shape the exact deliverable. Those controls let a team preserve the important source constraints, state subject behavior or material treatment precisely, choose supported timing or output characteristics, and reproduce successful settings across alternate takes. The result fits an iterative pipeline: establish the core brief, compare controlled variations, then pass the selected asset into editorial, design, localization, visualization, or publishing work.

Highlights

  • Style-conditioned creation. Generate a new image from text while applying an existing style identifier when one is available.
  • Style creation fallback. Create the needed visual style as part of the request when no reusable style identifier is supplied.
  • Pro image rendering. Use the Pro route for polished typography, composition, texture, and campaign-grade finish.
  • Reusable art direction. Keep a style identifier stable across prompts to build a coherent visual series.

Pricing

ConfigurationPrice
Existing style ID$0.115000
No style ID; includes style creation$0.121000

When to Use

ScenarioWhy it fits
Exact workflow fitChoose this route when the required deliverable is styled text-to-image generation, rather than a related route with different source media.
Directed creative iterationUse it when subject, motion, material, speech, framing, or finish should be expressed explicitly and compared across controlled variants.
Existing-asset continuityUse it when supplied images, video, audio, references, or styles must remain the anchor for the generated result.
Repeatable productionUse it when successful inputs need to be saved and rerun across a campaign, asset set, localization pass, or batch.
Pipeline handoffUse it when the returned artifact will move into editorial, compositing, visualization, review, storage, or publishing.

Prompt Guide

Start with the source or subject, then describe the intended transformation, movement or behavior, camera and composition, and the desired finish. Keep media URLs reachable, use only fields documented for this exact route, and change one major control at a time when comparing results. For source-led tasks, describe what should change as well as what must remain recognizable.

{
  "prompt": "A cinematic close shot with clear subject action, camera movement, lighting, and final visual treatment."
}

Technical Specs

PropertyValue
Model IDrecraft/4.0/style/pro/text-to-image
Execution modeasync
Required inputsprompt
background_colorstring
colorsarray; default: []
enable_safety_checkerboolean; default: false
image_sizestring
image_urlsarray
promptstring
safety_tolerancestring; default: 6
style_idstring
style_matchstring
sync_modeboolean; default: false

Related Models

  • recraft/4.0/style/pro/text-to-vector
  • recraft/4.0/style/text-to-image
  • recraft/4.0/style/text-to-vector
  • recraft/recraft/v4.1/pro/vector

Related Models

recraft/recraft-20bRecraft 20b is Recraft's advanced text-to-image AI model. Create photorealistic images, illustrations, and concept art from natural language descriptions with exceptional detail and prompt adherence.recraft/recraft/upscale/creativeRecraft Upscale Creative by Recraft - AI-powered image editing, style transfer, and transformation. Edit photos with natural language instructions, remove backgrounds, change styles, and enhance images effortlessly.recraft/recraft/upscale/crispRecraft Upscale Crisp is Recraft's intelligent image editing model. Transform, retouch, and reimagine existing images using text prompts - from background replacement to artistic style conversion.recraft/recraft/v3Recraft V3 by Recraft - generate stunning images from text prompts with state-of-the-art AI. Supports multiple aspect ratios, styles, and high-resolution output for creative and commercial use.recraft/recraft/v3/create-styleRecraft V3 Create Style by Recraft - advanced AI model for training. Delivers high-quality results with fast inference, suitable for both creative and production workflows.recraft/recraft/v3/editRecraft V3 Edit is Recraft's intelligent image editing model. Transform, retouch, and reimagine existing images using text prompts - from background replacement to artistic style conversion.recraft/recraft/v4Recraft V4 by Recraft - generate stunning images from text prompts with state-of-the-art AI. Supports multiple aspect ratios, styles, and high-resolution output for creative and commercial use.recraft/recraft/v4.1Recraft V4.1 by Recraft - generate stunning images from text prompts with state-of-the-art AI. Supports multiple aspect ratios, styles, and high-resolution output for creative and commercial use.