cURL
curl --request POST \ --url https://gptproto.com/kling/v1/images/generations \ --header 'Authorization: <authorization>' \ --header 'Content-Type: application/json' \ --data '{ "prompt": "<string>" }'
{ "error": { "message": "Invalid request parameters", "type": "invalid_request_error", "code": "invalid_parameters" } }
Image Generation
Bearer YOUR_API_KEY
curl -X POST "https://gptproto.com/kling/v1/images/generations" \ -H "Authorization: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "prompt": "A happy scene on the beach." }'
{ "status": "success" }