Hamilton
POST/v2/artworks/hamilton
Kick off a text-to-image generation with the Hamilton model. Returns a task ID you can poll, or wire a webhook to get notified when the image is ready.
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: >= 512 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: >= 512 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).
Optional webhook URL. When provided, the server will POST the final artwork result to this URL upon completion.
Responses
- 202
- 400
- 401
- 403
- 429
- 500
Response indicating that the artwork was successfully created.
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [hamilton]
parameters
object
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: >= 512 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: >= 512 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).
Optional webhook URL. When provided, the server will POST the final artwork result to this URL upon completion.
Possible values: [starting, processing, succeeded, failed, canceled]
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"artworkType": "hamilton",
"parameters": {
"prompt": "cat",
"negativePrompt": "string",
"style": "default",
"promptMode": "servitor",
"creativity": 3,
"effort": 3,
"aspectRatio": "1:1",
"width": 1024,
"height": 1024,
"nsfw": false,
"transparentBackground": false,
"highResolution": false,
"webhook": "string"
},
"duration": 0,
"results": [
"string"
],
"status": "starting",
"createdAt": "2024-07-29T15:51:28.071Z"
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
Available only when the message includes additional error details.
{
"message": "string",
"statusCode": 0,
"error": "string"
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
Available only when the message includes additional error details.
{
"message": "string",
"statusCode": 0,
"error": "string"
}
Forbidden
- application/json
- Schema
- Example (from schema)
Schema
Available only when the message includes additional error details.
{
"message": "string",
"statusCode": 0,
"error": "string"
}
Too Many Requests
- application/json
- Schema
- Example (from schema)
Schema
Available only when the message includes additional error details.
{
"message": "string",
"statusCode": 0,
"error": "string"
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
Schema
Available only when the message includes additional error details.
{
"message": "string",
"statusCode": 0,
"error": "string"
}