Transcription
Translation
Speech
speech.audio.done usage: input tokens
are text input and output tokens are generated audio. Both contribute to the
final cost. Missing usage remains incomplete rather than a certified zero charge.
When private request-asset storage is configured, generated speech is saved with
the request using the existing image-asset storage and signed-URL access path.
The request view provides playback and download. Send Planck-Omit-Response: true
to omit the response body and audio asset from logs; usage and billing are still
recorded. Planck-Omit-Request: true omits the input text and instructions.
Historical logs that recorded only audio body size cannot recover the audio.
BYOK
Audio follows the same BYOK/PTB selection as chat: stored BYOK is used by default when available, otherwise PTB is used when available. SendPlanck-Billing-Mode: ptb or Planck-Billing-Mode: byok to force a mode for a specific request.
X-Provider-Key and Planck-Provider-Key are still supported as explicit per-request BYOK overrides.
Audio requests are usage-bearing and should flow through gateway cost extraction, billing, and logging when the provider returns enough usage information.
This endpoint uses the shared AI Gateway error envelope. See the
Error Handling & Fallback guide for
response examples, retry rules, fallback behavior, and streaming errors.