Pricing
Compare models →Simple per-image billing:
- $0.022 per generated image
Input schema
| Parameter | Type | Description |
|---|---|---|
promptRequired | string | The positive prompt for the generation. |
aspect_ratio | string | The aspect ratio of the generated image. Defaults to 1:1.1:116:99:164:33:4"1:1" |
style | string | Style of the generated image.realistic_imagerealistic_image/b_and_wrealistic_image/enterpriserealistic_image/hard_flashrealistic_image/hdrrealistic_image/motion_blurrealistic_image/natural_lightrealistic_image/studio_portraitdigital_illustrationdigital_illustration/2d_art_posterdigital_illustration/2d_art_poster_2digital_illustration/3ddigital_illustration/80sdigital_illustration/engraving_colordigital_illustration/glowdigital_illustration/graindigital_illustration/hand_drawndigital_illustration/hand_drawn_outlinedigital_illustration/handmade_3ddigital_illustration/infantile_sketchdigital_illustration/kawaiidigital_illustration/pixel_artdigital_illustration/psychedelicdigital_illustration/seamlessdigital_illustration/voxeldigital_illustration/watercolor"realistic_image/b_and_w" |
README
Recraft 20B — Design-Native Text-to-Image
Recraft 20B is a large-scale text-to-image model that “thinks in design language.” It is tuned for layouts, typography, brand-safe compositions, and clean text rendering, making it ideal for social graphics, ads, presentations, and product visuals where design quality matters as much as realism.
Why it stands out
- Design-first image generation
Strong understanding of layout, hierarchy, and composition for poster-style images, thumbnails, and marketing assets.
- Sharp, readable text on images
Generates high-quality embedded text—from short labels to longer headlines—directly inside the image.
- Rich style system
Curated style presets (for example, igital_illustration/grain make it easy to switch between illustration, painterly, and graphic styles without rewriting prompts.
- Brand and identity friendly
Handles logos, icons, and UI-like designs with improved anatomy, alignment, and visual consistency.
- Vector-aware design
Originates from a system that supports both raster and vector workflows, making it particularly strong for flat design, icons, and graphic illustration.
Key capabilities
- Advanced prompt understanding for detailed scenes, characters, and layouts.
- Stable composition suitable for posters, covers, landing-page hero sections, and ad creatives.
- Improved anatomy and perspective compared to many generic art models.
- Good text–image integration so titles, slogans, and labels feel part of the design rather than pasted on.
Controls and parameters
- prompt – natural-language description of the scene, style, layout, and embedded text you want.
- aspect_ratio – choose from standard ratios (for example 1:1, 16:9, 9:16) to match feeds, banners, and story formats.
- style – select from model-defined style families such as igital_illustration/grainto quickly shift aesthetic direction.
- enable_base64_output – when enabled via API, returns the image as a base64 string instead of a URL (useful for certain integrations).
Outputs are delivered as high-quality raster images suitable for web, slides, and print-oriented workflows.
Pricing
Simple per-image billing:
- $0.022 per generated image
How to use
- Enter a prompt describing subject, composition, design style, and any on-image text (titles, slogans, labels).
- Choose an aspect_ratio that matches the target placement (for example, 16:9 for banners, 9:16 for vertical stories).
- Select a style preset that fits your use case (illustration, grainy poster look, etc.).
- (Optional) Enable base64 output if your integration needs inline image data instead of URLs.
- Run the job and download or embed the generated image from the response or dashboard.
Pro tips
- Be explicit about layout (e.g., “centered character with headline at the top, small subtitle below”) to leverage Recraft’s design-native strengths.
- For text-heavy designs, spell out exact wording and, if needed, describe typography (for example, “bold sans-serif headline, clean minimal layout”).
- Use aspect ratios that match the final placement so you avoid cropping away important elements.
- When exploring brand visuals, keep the core prompt stable and tweak style or minor wording to generate consistent variations.
Catalog rates and input examples are published for reference. Contact OpenSI about access and applicable pricing.
Recraft 20B Text-to-Image API example
The catalog lists POST https://api.opensi.com.ai/api/v3/recraft-ai/recraft-20b for the submission step. Confirm the endpoint and access with your supplier before sending a request.
HTTP request body
{
"prompt": "A cinematic ocean wave at sunrise, highly detailed",
"aspect_ratio": "1:1",
"style": "realistic_image/b_and_w"
}Recraft 20B Text-to-Image API — Frequently asked questions
What is the Recraft 20b API?
Recraft 20b is a Recraft model for image generation, exposed as a REST API on OpenSIAI. Recraft AI 20b delivers affordable, fast image generation. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing. You can call it programmatically or try it from the playground above.
How do I call the Recraft 20b API?
POST your input parameters to the model's REST endpoint (shown in the API tab of this playground) with your OpenSIAI API key in the Authorization header. Submission returns a prediction ID. Poll the result endpoint starting around every 2 seconds, increase the interval for long-running tasks, and stop on any terminal status. The playground generates Python, JavaScript, and cURL examples for submitting requests and polling results. Full request/response shape is documented at /docs/docs-api/recraft-ai/recraft-20b.
How much does Recraft 20b cost per run or per second?
Recraft 20b starts at $0.022 per run or per second. That figure is the base price — the final charge scales with the parameters you set in the form (output size, length, count, references, or whatever knobs this model exposes), so a higher-quality or larger output costs more than a minimal one. The exact cost for your current input is shown live next to the Generate button before you submit, and the actual per-call charge is recorded on the prediction afterwards.
What inputs does Recraft 20b accept?
Key inputs: prompt, aspect_ratio, style. The full JSON schema (types, defaults, allowed values) is rendered above the Generate button and mirrored in the API reference at /docs/docs-api/recraft-ai/recraft-20b.
How long does Recraft 20b take to generate?
Reported generation time on OpenSIAI is around 7 seconds per request. This is an estimate, not a latency guarantee; queue time and input settings can change the total wait. live status is visible in the prediction record.
Can I use Recraft 20b outputs commercially?
Commercial usage rights depend on the model's license, set by its provider (Recraft). Check the provider's applicable terms and OpenSIAI's Terms of Service before commercial use.
