curl --request POST \
--url https://api.ttapi.io/novelai/text-to-image \
--header 'Content-Type: application/json' \
--header 'TT-API-KEY: <api-key>' \
--data '
{
"prompt": "<string>",
"mode": "nai-diffusion-4-5-curated",
"n": 1,
"width": 1024,
"height": 1024,
"seed": "<string>",
"steps": 23,
"scale": 5,
"negative_prompt": "<string>",
"quality_toggle": true,
"sampler": "Euler Ancestral",
"noise_schedule": "karras",
"character_prompts": [
{
"prompt": "<string>",
"center": {
"x": 0.5,
"y": 0.5
},
"uc": "模糊画质,多余饰品"
}
],
"vibe_transfer": [
{
"image": "https://example.com/ref1.jpg",
"strength": 0.6
}
],
"character_reference": [
{
"image": "https://example.com/ref2.jpg",
"type": "character&style",
"strength": 1,
"fidelity": 0
}
],
"hook_url": "https://example.com/callback"
}
'