Hamilton (text to image)
POST/v2/studio/artworks/hamilton
Start a hamilton generation. Billed to your Studio credits. The result arrives by webhook or polling.
Request
- application/json
Body
required
Default value: cat
Limited to 256 words; additional content will be truncated.
Limited to 64 words; additional content will be truncated.
Possible values: [default, stained-glass, line-drawing, simple-sketch, hand-sketch, coloring-book, plasticine, photographer, analog, abstract-flat, surreal, manga]
The style to apply to the generated image.
Possible values: [seer, servitor]
Default value: servitor
Controls prompt enhancement. SEER enables AI-powered improvement, SERVITOR uses the prompt as-is.
Possible values: >= 1 and <= 5
Default value: 3
Controls the CFG scale. Range: 1-5.
Possible values: >= 1 and <= 5
Default value: 3
Controls generation quality vs speed. 1=fastest, 5=highest quality. Range: 1-5.
Possible values: [1:1, 2:3, 3:4, 4:3, 9:16, 3:2, 16:9]
Defaults to a 1:1 ratio (1024 × 1024) if width and height are not specified.
Possible values: >= 256 and <= 2048
Use aspectRatio instead of custom width and height for better quality. If defined, the total area (width × height) must not exceed 1,478,656 pixels (e.g., 1216 × 1216) when highResolution is false, or 1,763,584 pixels (e.g., 1328 × 1328) when highResolution is true.
Possible values: >= 256 and <= 2048
Use aspectRatio instead of custom width and height for better quality. If defined, the total area (width × height) must not exceed 1,478,656 pixels (e.g., 1216 × 1216) when highResolution is false, or 1,763,584 pixels (e.g., 1328 × 1328) when highResolution is true.
Set to true to allow NSFW output. When false (the default), safety negatives are injected into the negative prompt to suppress NSFW content.
When true, uses higher resolution dimensions for aspect ratios (e.g., 1328×1328 instead of 1024×1024 for 1:1).
Possible values: >= 1 and <= 2147483647
Optional random seed for deterministic generation. Range: 1-2147483647. Omit to let the server pick a random seed.
Possible values: [auto, png, webp]
Default value: auto
Output image format. auto lets the provider pick. Supported: auto, png, webp.
Optional HTTPS callback URL. Receives a signed delivery when the artwork finalizes.
Responses
- 202
- 400
- 401
- 402
- 403
- 429
Accepted — generation queued.
- application/json
- Schema
- Example (from schema)
Schema
Artwork id. Poll GET /studio/artworks/{id} or await the webhook.
{
"id": "string"
}
Invalid parameters.
Missing, invalid, or expired API key.
Insufficient credit.
Studio access inactive.
Rate limited.