POST
/
v1
/
photo_avatars
/
create_inference
Create Photo Avatar Inference
curl --request POST \
  --url https://os.gan.ai/v1/photo_avatars/create_inference \
  --header 'Content-Type: application/json' \
  --header 'ganos-api-key: <api-key>' \
  --data '{
  "photo_avatar_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "title": "<string>",
  "text": "<string>",
  "audio_url": "<string>",
  "voice_sample_url": "<string>"
}'
{
  "photo_avatar_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "photo_avatar_inference_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "title": "<string>",
  "status": "draft",
  "video": "<string>",
  "credit_details": {
    "tts_cost": 0,
    "gan_cost": 0
  },
  "downloadable_video_link": "<string>",
  "input_text": "<string>",
  "created_at": "2023-11-07T05:31:56Z"
}

Authorizations

ganos-api-key
string
header
required

Use the API key generated from our website to programmatically interact with our endpoints. This key authorizes your requests, allowing you to access and utilize our services securely.

Body

application/json

Provide either audio_url, or both text and voice_sample_url.

Response

200
application/json

Successful Response

The response is of type object.