Recraft V4 Pro SVG
Text-to-Image • Recraft • ProxiedGenerate detailed, production-ready SVG vector graphics from text prompts with fine geometry, scalable to any size for print and design work.
| 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-pro-vector', { prompt: 'A modern minimalist logo for a cloud computing company, clean geometric shapes', }, { gateway: { id: 'default' }, })console.log(response)
{ "state": "Completed", "result": { "image": "https://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/recraft__recraftv4-pro-vector/logo-design.jpg" }, "gatewayMetadata": { "keySource": "Unified" }}Examples
Icon Set — Generate a vector icon
const response = await env.AI.run( 'recraft/recraftv4-pro-vector', { prompt: 'A flat design icon of a rocket launching, suitable for a mobile app', size: '2048x2048', }, { gateway: { id: 'default' }, })console.log(response){ "state": "Completed", "result": { "image": "https://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/recraft__recraftv4-pro-vector/icon-set.jpg" }, "gatewayMetadata": { "keySource": "Unified" }}Print-Ready Vector — High-resolution vector for large-format print
const response = await env.AI.run( 'recraft/recraftv4-pro-vector', { prompt: 'An intricate mandala pattern with floral and geometric elements, highly detailed and symmetrical', size: '2048x2048', }, { gateway: { id: 'default' }, })console.log(response)
{ "state": "Completed", "result": { "image": "https://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/recraft__recraftv4-pro-vector/print-ready-vector.jpg" }, "gatewayMetadata": { "keySource": "Unified" }}Brand Illustration — Vector illustration with brand colors
const response = await env.AI.run( 'recraft/recraftv4-pro-vector', { prompt: 'A vector illustration of a cityscape skyline at sunset with clean lines and flat colors', controls: { colors: [ { rgb: [255, 87, 51], }, { rgb: [41, 50, 65], }, { rgb: [239, 239, 239], }, ], }, }, { gateway: { id: 'default' }, })console.log(response)
{ "state": "Completed", "result": { "image": "https://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/recraft__recraftv4-pro-vector/brand-illustration.jpg" }, "gatewayMetadata": { "keySource": "Unified" }}Parameters
stringrequiredstringstringstringobjectstring