Skip to main content
recraft avatar

Recraft V4.1 API

recraft/v4.1/text-to-image

Generate a polished, high-resolution raster image from a text prompt — Recraft's newest V4.1 model, producing imagery up to 2048×2048 with professional composition, lighting, and materials at an economical per-image price.

0.035

Model Input

Input

The text description of the image to generate (subject, scene, lighting, mood). Output is a polished, high-resolution raster image.

The size/aspect of the generated image. Pick a preset or supply an explicit width/height (up to 2048x2048 or an ultra-wide crop).

You need to be logged in to run this model and view results.
Log in

Model Output

Output

Generated image output
Generated in 7.017 seconds
Logs (1 lines)

Model Example Requests

Examples

Example output 1Example output 2Example output 3Example output 4

Recraft V4.1 API

Recraft V4.1 is a text-to-image AI model by recraft. On ModelRunner it runs through a REST API or via MCP from any AI assistant, at $0.035 per image.

POST https://queue.modelrunner.run/recraft/v4.1/text-to-image

cURL

# Submit a request to the queue. Input fields go at the top level of the
# body. The optional reserved "metadata" object holds your own flat string
# tags — stored on the request, never sent to the model; filter later with
# GET https://queue.modelrunner.run/requests?metadata=<url-encoded JSON>.
curl -X POST https://queue.modelrunner.run/recraft/v4.1/text-to-image \
  -H "Authorization: Key $MRUN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "a sleek electric SUV parked on a winding coastal cliff road at sunrise, dramatic ocean backdrop, cinematic wide-angle…",
    "image_size": "landscape_16_9",
    "metadata": {
      "project": "my-project"
    }
  }'
# → { "request_id": "...", "status_url": "...", "response_url": "..." }

# Poll status_url until "COMPLETED", then fetch the result
curl "https://queue.modelrunner.run/recraft/v4.1/text-to-image/requests/$REQUEST_ID/status" \
  -H "Authorization: Key $MRUN_API_KEY"
curl "https://queue.modelrunner.run/recraft/v4.1/text-to-image/requests/$REQUEST_ID" \
  -H "Authorization: Key $MRUN_API_KEY"

JavaScript

import { modelrunner } from "@modelrunner/client";

const result = await modelrunner.subscribe("recraft/v4.1/text-to-image", {
  input: {
    "prompt": "a sleek electric SUV parked on a winding coastal cliff road at sunrise, dramatic ocean backdrop, cinematic wide-angle…",
    "image_size": "landscape_16_9"
  },
});
console.log(result);

Python

import os
import requests

headers = {"Authorization": f"Key {os.environ['MRUN_API_KEY']}"}

submitted = requests.post(
    "https://queue.modelrunner.run/recraft/v4.1/text-to-image",
    headers=headers,
    json={
      "prompt": "a sleek electric SUV parked on a winding coastal cliff road at sunrise, dramatic ocean backdrop, cinematic wide-angle…",
      "image_size": "landscape_16_9"
    },
).json()

# Poll submitted["status_url"] until "COMPLETED", then:
result = requests.get(submitted["response_url"], headers=headers).json()

Input parameters

NameTypeRequiredDescription
promptstringyesThe text description of the image to generate (subject, scene, lighting, mood). Output is a polished, high-resolution raster image.
image_sizeenumnoThe size/aspect of the generated image. Pick a preset or supply an explicit width/height (up to 2048x2048 or an ultra-wide crop). Default: "square_hd".

Machine-readable: OpenAPI schema · llms.txt

Use Recraft V4.1 from Claude & Cursor (MCP)

Point Claude Code, Claude Desktop, Cursor, or any MCP client at the ModelRunner MCP server and Recraft V4.1 becomes a tool your assistant can call directly — it authorizes via OAuth (no API key in config) and runs this model with the run_model tool using the endpoint recraft/v4.1/text-to-image.

MCP client config (Claude Desktop, Cursor)

{
  "mcpServers": {
    "modelrunner": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://mcp.modelrunner.run/mcp"]
    }
  }
}

Claude Code

claude mcp add --transport http modelrunner https://mcp.modelrunner.run/mcp

Then ask your assistant, for example: “Run recraft/v4.1/text-to-image on ModelRunner to generate image”. MCP setup guide.

Model Details

Model Details

Recraft V4.1 turns a text prompt into a polished, high-resolution raster image. It is the standard (Normal) tier of Recraft's newest V4.1 point-release — the same modern design sensibility as the V4.1 Pro tier, pushing resolution and detail further than V4 by generating imagery up to 2048×2048 pixels and supporting ultra-wide formats, at an economical per-image price. It keeps a design-first sensibility: deliberate composition, natural lighting, and convincing material rendering suited to brand systems and production workflows. Describe the subject, scene, and mood, and the model returns a full-resolution raster image. There is no style or substyle picker to configure — the design sensibility is baked into the model, so you steer results entirely through the prompt and the chosen output size.

## Best for - High-resolution brand and campaign imagery that needs to look clean and publication-ready - Photorealistic product shots, hero images, and lifestyle scenes for e-commerce and marketing - Editorial and advertising illustration where composition, lighting, and materials matter - Wide banners, posters, and large-format creative that benefit from the higher resolution and ultra-wide sizes - High-volume image generation where a low per-image price matters

## Choose another model when - You need the highest-fidelity Pro-tier output for premium campaign work — use `recraft/v4.1/pro/text-to-image` - You need scalable SVG vector output (logos, icons, flat marks) instead of a raster image — use `recraft/v4.1/text-to-vector` - You want to pick from a large library of named art styles or substyles — use `recraft/v3/text-to-image` - You want to edit or restyle an existing image rather than generate one from a prompt — use an image-editing model

## Tips - Lead the prompt with the details that matter most: subject, setting, lighting, camera framing, and mood - Set `image_size` to match your target format — `square_hd`, `portrait_4_3`/`portrait_16_9`, or `landscape_4_3`/`landscape_16_9`; for an exact canvas (up to 2048×2048 or an ultra-wide crop) pass a `{width, height}` object - Describe the look you want directly in the prompt — there is no separate style control to set - Be specific about materials and surfaces (matte, glossy, metal, fabric) to get the model's material rendering to shine

## Limitations - Fine, legible text inside the image can still render imperfectly - Very large custom canvases increase generation time and can occasionally soften fine detail - For the highest-fidelity output, the Pro tier (`recraft/v4.1/pro/text-to-image`) is tuned a step further

To run via the ModelRunner JavaScript client: ```js import { modelrunner } from "@modelrunner/client";

const result = await modelrunner.subscribe("recraft/v4.1/text-to-image", { input: { prompt: "a matte-black wireless headphone resting on brushed concrete, dramatic side light, photorealistic product shot", image_size: "landscape_4_3", }, }); ```