ชี้ OpenAI SDK มาที่ https://api.paxalabs.com/v1 แล้วเรียก audio.transcriptions.create ราคา เพดานการใช้งาน และการคืนเครดิตเหมือน POST /v1/stt ซึ่งเป็นที่อยู่ของรูปแบบการเขียน ช่วงผู้พูด เวลาระดับคำ และคลังคำศัพท์ เอนด์พอยต์นี้ไม่อ่านฟิลด์เหล่านั้น ดูการจับคู่ฟิลด์ได้ที่คู่มือใช้ OpenAI SDK กับ Paxa
เฮดเดอร์#
authorizationBearer pxa_...จำเป็นAuthorization: Bearer pxa_... (recommended).
x-api-keypxa_...Alternative to the Authorization header. Ignored when Authorization is present.
idempotency-keystringMakes a retry safe. Two requests carrying the same key charge once and synthesize the same content. One request per key runs at a time. A concurrent duplicate answers 409 idempotency_in_flight. Reuse a key only to retry an identical request. A changed payload is rejected with 422. Accepts up to 200 printable ASCII characters.
เนื้อหา#
filefileจำเป็นThe recording, as a file part. MP3, WAV (PCM), FLAC, Ogg (Opus or Vorbis), M4A, AAC (ADTS), or WebM; the format and the length are read from the bytes. The part's filename and content type are ignored. Same ceilings, pricing, and refusals as the audio field on POST /v1/stt: up to 60 minutes and 26,214,400 bytes.
modelstringจำเป็นTranscription model id, for example paxa-stt-lite-v1-preview. OpenAI's own model names are not served and answer 400.
languagestringThe same field OpenAI defines. A BCP 47 tag the recording is expected to be in, such as "th". A hint that filters nothing. Omitted, the model detects the language itself.
response_format"json" or "text" or "srt" or "vtt"What the response body carries. "json" (the default) answers application/json with the transcript in a text field. "text" answers text/plain with the transcript alone. "srt" and "vtt" answer the subtitle file, cut the same way POST /v1/stt cuts it, at 60 characters a line. OpenAI's verbose_json is not served and answers 400. Every format is billed the same, by the recording's length.
การตอบกลับ#
The transcribed recording, in OpenAI's shape. Returned when response_format is "json" or absent.
textstringจำเป็นThe transcript, verbatim in the language spoken. Empty when the recording carried no speech.