API operations

Doubao API keys, endpoints, and billing

Select the correct provider credentials and endpoint for your model.

Create credentials on the correct platform

Keep each provider key with its own endpoint. Use a ModelPort key for ModelPort endpoints and check the catalog for the exact available model ID.

Check the billing unit

Text calls use token billing. Media jobs may be billed by image, second, or request, depending on the specification.

Verify the selected route

Get a quote for the actual media request and use the returned ID to read the final charge.

Models in this guide

Related guides and tools

Sources