Skip to main content
POST
kling-v2.1-master (Image To Video)

Authentication

  1. Sign up for a GPTProto account at https://gptproto.com
  2. Navigate to the API Keys section in your dashboard
  3. Generate a new API key (sk-xxxxx)
  4. Copy and securely store your API key For authentication details, please refer to the Authentication section.

Initiate Request

Query Result

If the request that generated your content includes the parameter enable_sync_mode set to true (some models do not support this parameter, but you still need to query the result by id), you must call the Query Result endpoint to retrieve the final output.
After submitting your prediction request, the response will contain the id you need.
You can find it in either:
  • data.id – the unique identifier of the prediction
  • data.urls[0].get – a ready-to-use GET URL that already embeds the id

Parameters

Multi-Prompt (V3.0 Only)

Custom Voice (Only V2.6 and subsequent versions)

voice_list is List of tones referenced when generating videos,The value of voice_id parameter is returned through the voice customization interface You can customize your voice by calling the endpoint below; please note:
  • audio parameter Supports .mp3 / .wav audio file and .mp4 / .mov video file.
  • The voice needs to be clean and free of noise, with only one type of human voice present, with a duration of no less than 5 seconds and no longer than 30 seconds.

Custom Voice interface

Query Custom Voice Result

After submitting your prediction request, the response will contain the id you need.
You can find it in either:
  • data.id – the unique identifier of the prediction
  • data.urls[0].get – a ready-to-use GET URL that already embeds the id

Custom Voice interface response

data.id is the voice id you need.

How to use the voice id

Add the voice id to the voice_list parameter when calling the video generation interface.

Error Codes

Common Error Codes