Recraft V4.1 Utility Pro
Text-to-Image • Recraft • ProxiedRecraft 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 License | link ↗ |
| More information | link ↗ |
| Pricing | View pricing in the Cloudflare dashboard ↗ |
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" }}'
{ "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" }}'
{ "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" }}'
{ "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" }}'
{ "gatewayMetadata": { "keySource": "Unified" }, "result": { "image": "https://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/recraft__recraftv4-1-utility-pro/technical-diagram.png" }, "state": "Completed"}Parameters
▶controls{}
objectprompt
stringrequiredsize
stringstyle
stringsubstyle
stringimage
string