Generation
Create new generation (sprite/variation)
Dispatches async job to Gemini. Poll GET /generations/:id for status.
post/v1/generations
Request
- Base URL: https://api.sprixen.com
- URL: https://api.sprixen.com/v1/generations
- Auth: bearer (a scheme the document does not define)
Request body
Example request
{
"prompt": "knight warrior with sword and shield",
"projectId": "proj_abc123",
"type": "sprite",
"referenceImageUrl": "/api/public/uploads/generations/user123/gen456_0.png",
"webhookUrl": "https://your-server.com/webhooks/sprixen",
"variantCount": 1,
"chainAnimation": {
"type": "idle",
"frameCount": 8,
"fps": 12,
"direction": "down",
"resolution": "28x32",
"idlePreset": "lively",
"quality": "standard"
},
"chainAnimations": [
{
"type": "idle",
"frameCount": 8,
"fps": 12,
"direction": "down",
"resolution": "28x32",
"idlePreset": "lively",
"quality": "standard"
}
],
"resolution": "256x256",
"packItems": [
"wall torch",
"vine roots",
"stone crack",
"moss patch"
],
"packType": "hud_ui",
"pixelPerfect": "auto"
}Response
Generation job created (pending)
Changes
No recorded changes to this operation across all 1 revision of this API.