Skip to content
中文
VezAPI Docs

Quickstart

Create a verified VezAPI account, create an API key in your dashboard, and choose a model. All examples use the VezAPI endpoint and your own VezAPI balance.

1. Create a task

curl 'https://api.vezapi.com/api/v1/jobs/createTask'   -H 'Authorization: Bearer YOUR_VEZAPI_KEY'   -H 'Content-Type: application/json'   -H 'Idempotency-Key: example-unique-id'   -d '{"model":"google/nano-banana","input":{"prompt":"A calm mountain lake","output_format":"png","image_size":"1:1"}}'

2. Read the result

curl 'https://api.vezapi.com/api/v1/jobs/recordInfo?taskId=YOUR_TASK_ID'   -H 'Authorization: Bearer YOUR_VEZAPI_KEY'

Save the returned file before its expiration. Supply callBackUrl to receive a notification when an asynchronous task completes. For chat APIs, use the model-specific protocol and include an explicit maximum output-token budget.