Design a voice
Designs voice previews from a description of how the voice should sound. Each preview runs 10 to 60 seconds, the length an avatar's voice sample needs: a short one is made once more with a longer read, and one still outside that range is dropped.
- Text:
sampleTextis what every preview says, inlanguage; without it, a greeting is written from the description. Each preview reports what it actually says inspokenText. - Output: each preview is an
upload:<uploadId>thatPOST /v1/avatars(assets.voice) andPUT /v1/avatars/{avatarId}/voicetake as is, with a short-livedurlto play it.durationSecondsisnullwhen the length is unknown. - Billing and idempotency: as for
POST /v1/generation/portraits. - Scopes:
generation:writeandavatars:write.
X-Api-Key<token>Your secret API key (sk_atmee_...; older keys start sk_live_),
sent as X-Api-Key. Keep it on your server and never send it to a
browser.
Idempotency-Key*stringA new UUID minted for this request. Reuse it only to retry the same request: a retry never charges twice and returns the first result. A malformed key, or a key already used with different inputs, gets 400 invalid_input.
length <= 255application/json- body
voiceDescription*stringHow the voice should sound: age, tone, pace, accent, character.
20 <= length <= 1000avatarName?stringThe avatar's name; the written sample says it.
length <= 100language?stringThe language the voice speaks. Default en.
"en""zh-TW""zh-CN""ja""ko""fr""vi""es""de""hi""ru"sampleText?stringWhat every preview says, in language: 220 to 600 characters for
Latin and Cyrillic scripts, 120 to 300 for Chinese, Japanese and
Korean, 180 to 450 for Hindi. Absent, a greeting is written from the
description.
length <= 600The voice previews (or the replayed first result).
application/json- response
voices*array<>1 <= itemslanguage*string"en""zh-TW""zh-CN""ja""ko""fr""vi""es""de""hi""ru"microcreditsCharged*integerWhat this call charged to credits (100 microcredits = 1 credit), after the plan's free generation allowance; 0 on a replay. The call's price is microcreditsCharged + microcreditsFree.
microcreditsFree*integerThe part of the price the plan's free generation allowance covered (pricing.generation.freeAllowance on GET /v1/account); 0 on a replay and when none is left.
replayed*booleanTrue when an earlier call with the same Idempotency-Key was replayed.
failedProviders*array<string>The providers that returned nothing usable.
curl -X POST 'https://api.atmanity.us/v1/generation/voices' \ -H 'Idempotency-Key: string' \ -H 'Content-Type: application/json' \ -d '{ "voiceDescription": "stringstringstringst"}'{ "voices": [ { "upload": "upload:3f1c2a9e-8d4b-4f6a-9c2e-1b7d5a0e4c11", "url": "http://example.com", "expiresAt": "2019-08-24T14:15:22Z", "provider": "string", "spokenText": "string", "durationSeconds": 0, "unavailable": true } ], "language": "en", "microcreditsCharged": 0, "microcreditsFree": 0, "replayed": true, "failedProviders": [ "string" ]}Enhance a portrait POST
Crops your photo to a square and returns two enhanced portraits, one from Gemini and one from Grok, that keep the subject's identity.
Generate a clip POST
Renders a short mp4 (1 to 15 seconds, 25 fps) of the person or character in image, moving as prompt describes and optionally speaking audio.

