Skip to main content
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
  • CreatePhotoAvatarInferencePayload
  • CreatePhotoAvatarInferencePayload

Provide either audio_url, or both text and voice_sample_url.

photo_avatar_id
string<uuid>
required
audio_url
string | null
required
title
string | null
text
string | null
voice_sample_url
string | null

Response

Successful Response

photo_avatar_id
string<uuid>
required
photo_avatar_inference_id
string<uuid>
required
status
enum<string>
required
Available options:
draft,
processing,
failed,
succeeded,
deleted
title
string | null
video
string | null

Cloudfront URL of the generated video.

credit_details
object
input_text
string | null
created_at
string<date-time> | null
I