Skip to content
POST/api/v1/generate-pattern$0.25/call

Generate Pattern

Generate seamless SVG patterns from text. The prompt is automatically enhanced for seamless/tileable output. Returns the pattern at a signed URL (expires after ~1 hour — download promptly). Perfect for backgrounds, textiles, and packaging.

Request

curl -X POST https://vectosolve.com/api/v1/generate-pattern \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"prompt": "geometric hexagonal pattern in navy and gold"}'

Parameters

NameTypeRequiredDescription
promptstringrequiredDescription of the pattern to generate. Describe colors, shapes, and style. Min 3, max 1000 characters.
stylestringoptionalVisual style, one of: "vector_illustration", "vector_illustration/line_art", "vector_illustration/engraving", "vector_illustration/linocut", "vector_illustration/bold_stroke", "vector_illustration/colored_stencil", "vector_illustration/thin", "digital_illustration", "digital_illustration/hand_drawn". Unrecognized values fall back to "vector_illustration". Default: "vector_illustration".
colorsarrayoptionalUp to 5 preferred colors, as hex strings ("#0000ff") or RGB objects ({"r":0,"g":0,"b":255}). Invalid entries are ignored.

Send parameters as a JSON body with Content-Type: application/json.

Response

200 OK
{
"success": true,
"data": {
"image_url": "https://...",
"format": "svg",
"processing_time_ms": 4800
},
"credits": {
"used": 0.25,
"remaining": 9.75
}
}

Authentication Required

Include Authorization: Bearer vs_xxx in all requests. Rate limit: 60 requests/minute.