sprited/sprute
Generate game characters, eight-direction sprite strips, and idle/walk/run animations.
Run sprited/sprute with an API
Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.
Input schema
The fields you can use to run this model with an API. If you don't give a value for a field its default value will be used.
| Field | Type | Default value | Description |
|---|---|---|---|
| image_type |
None
|
character
|
What the uploaded image contains.
|
| stop_after |
None
|
animate
|
Last stage to run; all intermediate images are returned.
|
| seed |
integer
|
-1
Min: -1.0 Max: 4294967295.0 |
-1 selects a random seed. The selected seed is shared by all stages.
|
| image |
string
|
Optional existing character or eight-direction strip; skips earlier stages.
|
|
| scale |
number
|
1.0
Min: 0.5 Max: 1.0 |
Animation inference scale. Smaller values reduce detail and computation; exported sprite dimensions stay the same.
|
| prompt |
string
|
|
Describe a character. Used when no image is supplied.
|
| motions |
string
|
idle,walk,run
|
Comma-separated animations: idle, walk, run. Each runs independently.
|
{
"type": "object",
"title": "Input",
"properties": {
"seed": {
"type": "integer",
"title": "Seed",
"default": -1,
"maximum": 4294967295.0,
"minimum": -1.0,
"description": "-1 selects a random seed. The selected seed is shared by all stages."
},
"image": {
"type": "string",
"title": "Image",
"format": "uri",
"nullable": true,
"description": "Optional existing character or eight-direction strip; skips earlier stages."
},
"scale": {
"type": "number",
"title": "Scale",
"default": 1.0,
"maximum": 1.0,
"minimum": 0.5,
"description": "Animation inference scale. Smaller values reduce detail and computation; exported sprite dimensions stay the same."
},
"prompt": {
"type": "string",
"title": "Prompt",
"default": "",
"description": "Describe a character. Used when no image is supplied."
},
"motions": {
"type": "string",
"title": "Motions",
"default": "idle,walk,run",
"description": "Comma-separated animations: idle, walk, run. Each runs independently."
},
"image_type": {
"enum": [
"character",
"directions"
],
"type": "string",
"title": "image_type",
"description": "What the uploaded image contains.",
"default": "character",
"x-order": 2
},
"stop_after": {
"enum": [
"generate",
"turntable",
"animate"
],
"type": "string",
"title": "stop_after",
"description": "Last stage to run; all intermediate images are returned.",
"default": "animate",
"x-order": 3
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
{
"type": "array",
"items": {
"type": "string",
"format": "uri"
},
"title": "Output"
}