Skip to content
Recraft logo

Recraft V4.1 Utility Pro

Text-to-Image • Recraft

View as MarkdownAgent setup

Model ID

Use with the Workers AI binding, the AI Gateway REST API, or the Unified API.

Calling the provider directly? Use the provider's model name instead, including with provider-native endpoints or the provider's own SDK. For example, Anthropic's name for anthropic/claude-opus-4.8 is claude-opus-4-8.

  • Third-party
  • Zero data retention

Recraft V4.1 Utility Pro is a general-purpose text-to-image model producing high-resolution 2048px+ output for a wide range of production and print use cases.

Model Info
Terms and Licenselink ↗
More informationlink ↗
Zero data retentionYes
Pricing
  • Per image$0.21

Usage

const response = await env.AI.run(
  'recraft/recraftv4-1-utility-pro',
  {
    prompt:
      'A detailed illustrated map of an imaginary fantasy island with labeled landmarks, mountains, and forests',
  },
)
console.log(response)
curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \
  --header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
  --header "Content-Type: application/json" \
  --data '{
  "model": "recraft/recraftv4-1-utility-pro",
  "input": {
    "prompt": "A detailed illustrated map of an imaginary fantasy island with labeled landmarks, mountains, and forests"
  }
}'
Print-Ready Illustration
{
  "gatewayMetadata": {
    "keySource": "Unified"
  },
  "result": {
    "image": "https://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/recraft__recraftv4-1-utility-pro/print-ready-illustration.png"
  },
  "state": "Completed"
}

Examples

Large Format Art — Large canvas general-purpose image
const response = await env.AI.run(
  'recraft/recraftv4-1-utility-pro',
  {
    prompt:
      'A wide panoramic landscape of rolling green hills with a river winding through the valley under a bright blue sky',
    size: '2048x2048',
  },
)
console.log(response)
curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \
  --header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
  --header "Content-Type: application/json" \
  --data '{
  "model": "recraft/recraftv4-1-utility-pro",
  "input": {
    "prompt": "A wide panoramic landscape of rolling green hills with a river winding through the valley under a bright blue sky",
    "size": "2048x2048"
  }
}'
Large Format Art
{
  "gatewayMetadata": {
    "keySource": "Unified"
  },
  "result": {
    "image": "https://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/recraft__recraftv4-1-utility-pro/large-format-art.png"
  },
  "state": "Completed"
}
Marketing Asset — High-resolution marketing visual with controlled colors
const response = await env.AI.run(
  'recraft/recraftv4-1-utility-pro',
  {
    prompt: 'A clean, modern banner illustration of a smartphone displaying a productivity app',
    controls: {
      background_color: { rgb: [250, 250, 255] },
      colors: [{ rgb: [100, 200, 150] }, { rgb: [20, 20, 60] }],
    },
    size: '2048x2048',
  },
)
console.log(response)
curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \
  --header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
  --header "Content-Type: application/json" \
  --data '{
  "model": "recraft/recraftv4-1-utility-pro",
  "input": {
    "prompt": "A clean, modern banner illustration of a smartphone displaying a productivity app",
    "controls": {
      "background_color": {
        "rgb": [
          250,
          250,
          255
        ]
      },
      "colors": [
        {
          "rgb": [
            100,
            200,
            150
          ]
        },
        {
          "rgb": [
            20,
            20,
            60
          ]
        }
      ]
    },
    "size": "2048x2048"
  }
}'
Marketing Asset
{
  "gatewayMetadata": {
    "keySource": "Unified"
  },
  "result": {
    "image": "https://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/recraft__recraftv4-1-utility-pro/marketing-asset.png"
  },
  "state": "Completed"
}
Technical Diagram — High-resolution technical or infographic illustration
const response = await env.AI.run(
  'recraft/recraftv4-1-utility-pro',
  {
    prompt:
      'A clean technical diagram showing the layers of a cloud computing architecture with labeled tiers',
  },
)
console.log(response)
curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \
  --header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
  --header "Content-Type: application/json" \
  --data '{
  "model": "recraft/recraftv4-1-utility-pro",
  "input": {
    "prompt": "A clean technical diagram showing the layers of a cloud computing architecture with labeled tiers"
  }
}'
Technical Diagram
{
  "gatewayMetadata": {
    "keySource": "Unified"
  },
  "result": {
    "image": "https://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/recraft__recraftv4-1-utility-pro/technical-diagram.png"
  },
  "state": "Completed"
}

Parameters

prompt
stringrequired
size
string
style
string
substyle
string
image
string

API Schemas (Raw)

Input
Output

Was this helpful?