MaaS Gemini Native API
Request Method
POST
Request Path:
-
Non-streaming request: https://genaiapi.cloudsway.net/v1/ai/{endpointPath}/generateContent
-
Streaming request: https://genaiapi.cloudsway.net/v1/ai/{endpointPath}/streamGenerateContent
Path Parameters
| Parameter |
Type |
Required |
Description |
endpointPath |
string |
No |
Unique identifier for the path, obtained by subscribing to the model |
modelName |
string |
Yes |
Model name, e.g., MaaS_2.5_pro |
alt |
string |
No |
Return result in sse format. Value: sse |
Body Parameters
| Parameter |
Type |
Required |
Description |
cachedContent |
string |
No |
Name of cached content used as prediction context |
contents |
Content[] |
Yes |
Conversation content with the model (single or multiple rounds) |
systemInstruction |
Content |
No |
System instruction |
tools |
Tool[] |
No |
Function call definition |
safetySettings |
SafetySetting[] |
No |
Safety settings |
generationConfig |
GenerationConfig |
No |
Generation configuration |
labels |
map |
No |
Key-value pair formatted metadata, not supported temporarily |
Content Object
| Parameter |
Type |
Required |
Description |
role |
string |
No |
Source of the message: user (user) or model (model) |
parts |
Part[] |
Yes |
Ordered list of message parts |
Part Object
| Parameter |
Type |
Required |
Description |
text |
string |
Optional |
Text content |
inlineData |
Blob |
Optional |
Inline data |
fileData |
FileData |
Optional |
File data |
functionCall |
FunctionCall |
Optional |
Function call |
functionResponse |
FunctionResponse |
Optional |
Function response |
videoMetadata |
VideoMetadata |
No |
Video metadata |
Blob Object (Inline Data)
| Parameter |
Type |
Required |
Description |
mimeType |
string |
Yes |
Supported MIME types:
application/pdf, audio/mpeg, image/png, video/mp4, etc. |
data |
String |
Yes |
Base64 encoded data (maximum 20MB) |
FileData Object
| Parameter |
Type |
Required |
Description |
mimeType |
string |
Yes |
File MIME type |
fileUri |
string |
Yes |
File URI (Cloud Storage, HTTP, or YouTube) |
| Parameter |
Type |
Required |
Description |
startOffset |
Long |
No |
Video start offset |
endOffset |
Long |
No |
Video end offset |
SafetySetting Object
| Parameter |
Type |
Required |
Description |
category |
String |
Optional |
Safety category:
HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_HATE_SPEECH,
HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_DANGEROUS_CONTENT |
threshold |
String |
Optional |
Blocking threshold:
BLOCK_LOW_AND_ABOVE, BLOCK_MEDIUM_AND_ABOVE,
BLOCK_ONLY_HIGH, BLOCK_NONE, OFF |
method |
String |
Optional |
Blocking method: SEVERITY or PROBABILITY |
GenerationConfig Object
| Parameter |
Type |
Required |
Description |
temperature |
float |
No |
Randomness control (0.0-2.0, default 1.0) |
topP |
float |
No |
Nucleus sampling (0.0-1.0, default 0.95) |
candidateCount |
int |
No |
Number of response variants (1-8, default 1) |
maxOutputTokens |
int |
No |
Maximum number of output tokens |
stopSequences |
string[] |
No |
Stop sequences (up to 5) |
presencePenalty |
float |
No |
Presence penalty (-2.0 to 2.0) not supported temporarily |
frequencyPenalty |
float |
No |
Frequency penalty (-2.0 to 2.0) not supported temporarily |
responseMimeType |
string |
No |
Response MIME type:
application/json, text/plain, text/x.enum |
responseSchema |
json |
No |
Response schema (to be used with responseMimeType) |
seed |
int |
No |
Random seed |
responseLogprobs |
boolean |
No |
Whether to return token log probabilities, not supported temporarily |
logprobs |
int |
No |
Number of candidate tokens to return (1-5), not supported temporarily |
audioTimestamp |
boolean |
No |
Whether to enable audio timestamps, not supported temporarily |
thinkingConfig |
ThinkingConfig |
No |
Thinking configuration |
ThinkingConfig Object
| Parameter |
Type |
Required |
Description |
includeThoughts |
boolean |
No |
Indicates whether to include thinking in the result |
thinkingBudget |
int |
No |
Controls the number of thinking tokens |
Response Body
Response Parameters
| Parameter |
Type |
Description |
candidates |
Candidate[] |
Generated candidate contents |
usageMetadata |
UsageMetadata |
Token usage metadata |
modelVersion |
string |
Version of the model used (e.g., gemini-1.5-flash-002) |
Candidate Object
| Parameter |
Type |
Description |
content |
Content |
Generated content |
finishReason |
enum |
Reason for termination:
FINISH_REASON_STOP, FINISH_REASON_MAX_TOKENS,
FINISH_REASON_SAFETY, FINISH_REASON_RECITATION, etc. |
safetyRatings |
SafetyRating[] |
Safety ratings |
citationMetadata |
CitationMetadata |
Citation metadata |
avgLogprobs |
double |
Average log probability |
logprobsResult |
LogprobsResult |
Log probability result |
SafetyRating Object
| Parameter |
Type |
Description |
category |
enum |
Safety category |
probability |
enum |
Harm probability:
NEGLIGIBLE, LOW, MEDIUM, HIGH |
blocked |
boolean |
Whether it is blocked |
| Parameter |
Type |
Description |
citations |
Citation[] |
List of citations |
Citation Object
| Parameter |
Type |
Description |
startIndex |
integer |
Citation start position |
endIndex |
integer |
Citation end position |
uri |
string |
Citation source URI |
title |
string |
Citation title |
license |
string |
Citation license |
publicationDate |
Date |
Publication date |
| Parameter |
Type |
Description |
promptTokenCount |
integer |
Number of input tokens |
candidatesTokenCount |
integer |
Number of output tokens |
totalTokenCount |
integer |
Total number of tokens |
LogprobsResult Object
| Parameter |
Type |
Description |
topCandidates |
TopCandidates[] |
Candidate tokens for each step |
chosenCandidates |
ChosenCandidate[] |
Tokens selected by the model |
TopCandidates Object
| Parameter |
Type |
Description |
candidates |
CandidateToken[] |
List of candidate tokens |
CandidateToken Object
| Parameter |
Type |
Description |
token |
string |
Token text |
logProbability |
float |
Log probability of the token |
ChosenCandidate Object
| Parameter |
Type |
Description |
token |
string |
Token selected by the model |
logProbability |
float |
Log probability of the token |
Example Request
{
"cachedContent": string,
"contents": [
{
"role": string,
"parts": [
{
// Union field data can be only one of the following:
"text": string,
"inlineData": {
"mimeType": string,
"data": string
},
"fileData": {
"mimeType": string,
"fileUri": string
},
// End of list of possible types for union field data.
"videoMetadata": {
"startOffset": {
"seconds": integer,
"nanos": integer
},
"endOffset": {
"seconds": integer,
"nanos": integer
}
}
}
]
}
],
"systemInstruction": {
"role": string,
"parts": [
{
"text": string
}
]
},
"tools": [
{
"functionDeclarations": [
{
"name": string,
"description": string,
"parameters": {
object (OpenAPI Object Schema)
}
}
]
}
],
"safetySettings": [
{
"category": enum (HarmCategory),
"threshold": enum (HarmBlockThreshold)
}
],
"generationConfig": {
"temperature": number,
"topP": number,
"topK": number,
"candidateCount": integer,
"maxOutputTokens": integer,
"presencePenalty": float,
"frequencyPenalty": float,
"stopSequences": [
string
],
"responseMimeType": string,
"responseSchema": schema,
"seed": integer,
"responseLogprobs": boolean,
"logprobs": integer,
"audioTimestamp": boolean
},
"labels": {
string: string
}
}
Complete Requests
1. Streaming Request
curl --location 'https://genaiapi.cloudsway.net/v1/ai/{endpointPath}/streamGenerateContent?alt=sse' \
--header 'Authorization: Bearer {YOUR AK}' \
--header 'Content-Type: application/json' \
--data '{
"contents": [
{
"role":"user",
"parts": [
{
"text": "Explain how AI works in a few words"
}
]
}
]
}'
2. Streaming Structure Request
curl --location 'https://genaiapi.cloudsway.net/v1/ai/{endpointPath}/streamGenerateContent' \
--header 'Authorization: Bearer {YOUR AK}' \
--header 'Content-Type: application/json' \
--data '{
"contents": [
{
"role":"user",
"parts": [
{
"text": "Explain how AI works in a few words"
}
]
}
]
}'
3. Non-streaming Request
curl --location 'https://genaiapi.cloudsway.net/v1/ai/{endpointPath}/generateContent' \
--header 'Authorization: Bearer {YOUR AK}' \
--header 'Content-Type: application/json' \
--data '{
"contents": [
{
"role":"user",
"parts": [
{
"text": "Explain how AI works in a few words"
}
]
}
]
}'
Example Response Results
{
"candidates": [
{
"content": {
"parts": [
{
"text": string
}
]
},
"finishReason": enum (FinishReason),
"safetyRatings": [
{
"category": enum (HarmCategory),
"probability": enum (HarmProbability),
"blocked": boolean
}
],
"citationMetadata": {
"citations": [
{
"startIndex": integer,
"endIndex": integer,
"uri": string,
"title": string,
"license": string,
"publicationDate": {
"year": integer,
"month": integer,
"day": integer
}
}
]
},
"avgLogprobs": double,
"logprobsResult": {
"topCandidates": [
{
"candidates": [
{
"token": string,
"logProbability": float
}
]
}
],
"chosenCandidates": [
{
"token": string,
"logProbability": float
}
]
}
}
],
"usageMetadata": {
"promptTokenCount": integer,
"candidatesTokenCount": integer,
"totalTokenCount": integer
},
"modelVersion": string
}
Google Official OpenAI-Compatible API
Google's official Gemini API compatible with the OpenAI protocol
Request Protocol
HTTPS
| Parameter |
Value |
| Authorization |
Bearer |
| Content-Type |
application/json |
Request URL
https://genaiapi.cloudsway.net/v1/ai/{YOUR ENDPOINT}/google/chat/completions
Request Body
Google Model Chat Completions API Supported Parameters
Basic Parameters
| Parameter |
Support |
Description |
| messages |
✅ Supported |
Supports the following message types:
- System messages
- User messages (supports text and image_url types, image_url supports Cloud Storage URI or base64 encoding)
- Assistant messages
- Tool messages
- Function messages (deprecated, but backward compatible) |
| model |
✅ Supported |
Model name |
| max_tokens/max_completion_tokens |
✅ Supported |
Maximum number of tokens in the response |
| temperature |
✅ Supported |
Sampling temperature |
| top_p |
✅ Supported |
Nucleus sampling parameter |
| n |
✅ Supported |
Number of generated results |
| stream |
✅ Supported |
Streaming output |
| stop |
✅ Supported |
Stop sequences |
| presence_penalty |
✅ Supported |
Presence penalty |
| frequency_penalty |
✅ Supported |
Frequency penalty |
| seed |
✅ Supported |
Corresponds to Gemini's GenerationConfig.seed |
| Parameter |
Support |
Description |
| input_audio |
✅ Supported |
Supports URI or blob format, all valid MIME types |
| image_url |
✅ Supported |
Supports URI or blob format, detail parameter is unified across requests |
| Parameter |
Support |
Description |
| tools |
✅ Supported |
Tool definitions |
| tool_choice |
✅ Supported |
Options: none, auto, required (ANY mode), validated (VALIDATED mode) |
| functions |
⚠️ Deprecated |
Backward compatible |
| function_call |
⚠️ Deprecated |
Backward compatible |
Gemini-Specific Parameters
{
"extra_body": {
"google": {
"safety_settings": "Safety settings",
"cached_content": "Cached content",
"thinking_config": "Thinking configuration"
}
},
"extra_part": {
"google": {
"thought": "Explicitly mark thinking content"
}
}
}
Request Demo
curl --location --request POST 'https://genaiapi.cloudsway.net/v1/ai/{your endpointpath}/google/chat/completions' \
--header 'Authorization: Bearer ${your_ak}' \
--data-raw '{
"messages": [
{
"role": "user",
"content": "Write a 150-word fable"
}
],
"model": "gemini-3-flash-preview",
"stream": false,
"temperature": 0.2,
"thinking": {
"type": "enabled",
"thinking_level": "low"
}
}'
Response Result
{
"id": "1YNsauHtN9akktwPt46-2Ac",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Here is a fable of about 150 words:\n\n**\"The Stream and the Boulder\"**\n\nIn a valley, a clear stream was blocked by a boulder. The boulder said arrogantly: \"I am incredibly hard. You, a weak stream, can never pass through me!\" The stream did not argue, but calmly adjusted its direction, quietly flowed through the cracks, and continued on its way.\n\nAs years passed, the stream grew into a great river and witnessed the vastness of the ocean. Meanwhile, the boulder remained trapped in the dark valley, its edges worn smooth day after day, growing smaller and smaller.\n\n**Moral:** True strength lies not in outward hardness, but in inner flexibility and persistent resilience. When facing obstacles, rather than confronting them head-on, learn to adapt.",
"extra_content": {
"google": {
"thought_signature": "AY89a1/cVFB2umPW2Xi+ZhQBjZYe8N7Vzpzynw4KzRxiYqDWQHVISVEEKJxttiCdSLjSlIg5KBfJrofNeq80M9CCZC7p8jBNxW3WG6hvxO3Dwayw+9bGEGQu/MecWLMzKUqhioGmn0mjvxZJH2AJaU4b/CAEBc+AUIfZMgJWrmEMkKYaf3n7yVjcln9RxVqGmklQ6UycvMV/XVwI5DGo+OSwjIcNHO4+M7IkvSw9aN5BGkDvt8k4X6VpznL50DzzRwhA7O1d0x6BCzK742htgDK+ox3gtnMhJfFZiE8cqep8viJmVhyHuUgPs0HoF0aSLJ01QqxPAVwG5+KRwVPoXn8uFAoxNVLSs/57f/YbyASLvAJ3oAmfDct/k9Zjr4cShU0f8CDcWnscZ9Elh0jwpqAtTMVDW96hLW0ouDgnXRL7jRqrQolADKv5iym0LiP0UM24l/4DhKPz/neRyu6JoQnkVZKxZ1bjgZLRzHzpbfQMKc4yo6V4VfC5A9EUjcG0mSUx2ojz6Y3CsKVMwa/W3FsQGcZE9z7Ok1vmtHEXA5NOFt8nuc6CKvq+fxvBZkBUx+Ukshcpt8mmqy/ZuwWB8hW/CiG1XXNNkebaAIBac9n8oXmyVwRpqL+alf9JUxLIUkW41uZ0W1KKaC9KIjrAoZRZ0TFt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
],
"created": 1785496533,
"model": "google/gemini-3-flash-preview",
"object": "chat.completion",
"system_fingerprint": "",
"usage": {
"prompt_tokens": 8,
"completion_tokens": 190,
"total_tokens": 975,
"completion_tokens_details": {
"accepted_prediction_tokens": 0,
"audio_tokens": 0,
"image_tokens": 0,
"reasoning_tokens": 777,
"rejected_prediction_tokens": 0
},
"extra_properties": {
"google": {
"traffic_type": "ON_DEMAND"
}
}
}
}
MaaS platform implementation for converting between OpenAI format and Gemini native format
Request Protocol
HTTPS
| Parameter |
Value |
| Authorization |
Bearer |
| Content-Type |
application/json |
Request URL
https://genaiapi.cloudsway.net/v1/ai/{YOUR ENDPOINT}/chat/completions
Request Demo
Request:
curl --location --request POST 'https://genaiapi.cloudsway.net/v1/ai/{your endpointpath}/chat/completions' \
--header 'Authorization: Bearer ${your_ak}' \
--data-raw '{
"messages": [
{
"role": "user",
"content": "Write a 150-word fable"
}
],
"model": "gemini-3-flash-preview",
"stream": false,
"temperature": 0.2,
"thinking": {
"type": "enabled",
"thinking_level": "low"
}
}'
Response Result
{
"id": "chatcmpl-dA7C2L15OJ9mBvtsGosCLLvu",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "**\"The River and the Rock\"**\n\nIn a valley, there was a huge rock that always mocked the stream beside it: \"You weak thing, you shatter at my touch and can only flow around me.\" The stream said nothing, just quietly flowed on, gently caressing the rock's edges day after day.\n\nYears later, a flood came. The rock, worn smooth by years of erosion, became round and small, and was eventually swept away by the mud. But the stream still flowed clearly toward the distance.\n\nBefore its end, the rock sighed: \"So true strength lies not in outward hardness, but in enduring patience.\"\n\n**Moral: Dripping water wears through stone; softness overcomes hardness.**",
"reasoning_details": [
{
"type": "content",
"text": "**\"The River and the Rock\"**\n\nIn a valley, there was a huge rock that always mocked the stream beside it: \"You weak thing, you shatter at my touch and can only flow around me.\" The stream said nothing, just quietly flowed on, gently caressing the rock's edges day after day.\n\nYears later, a flood came. The rock, worn smooth by years of erosion, became round and small, and was eventually swept away by the mud. But the stream still flowed clearly toward the distance.\n\nBefore its end, the rock sighed: \"So true strength lies not in outward hardness, but in enduring patience.\"\n\n**Moral: Dripping water wears through stone; softness overcomes hardness.**",
"signature": "AY89a19BUP+5RxPtgEu/QhNiYGwoo7EatKgs82g2slA0eBUCS4dN6wYlTrsnGsBlBqp76eBMdZpYR2ha3/LOt8/8pZ3MOwBbo9H2MlP+K7AWl2mEjw21tu5SHVGyWKx2CPNOtRTA3ZDQZSezixhyplbeOK7sD+0SyYutXdU2HS4YFqG3G+NBq0aqC3eJYkC00CYv1BK58Yd4waoazPnL5hTPhEYo8OA5WTewZHPEIgIq1NCLSg/pnIaOG2X8a9CGa2i0PJbs3hFjzk7w/dJe+MFAwq4KnZ+x5BgZty/Og1OUmrIwY8zNutWGZX+BXqILEfSBWpZ+KRcKAbBgzIhk9lVp1HOPuB0YRnXQeHjofokSjXqf8qfdgOrWUqokM7PyFPkzsKRsTTEPypmZ9uikevcK4bkyKh3RF6iC1+4fqdZE8NnPF1Ija/lu1CvGsRTjypOztyK9Z/bJN+GW8cZNbQWfzT7INNDbW5r8bbs2cpycDcxojOgKruWCh5knDeDL3bE0ATfGhl9J5jLxJdfj881Bd5OUzGLnzK/nfQCZ3TTmebAPxAklYW+rQXVnK4/o07ptaPott+5ljKZfmlzdoKd5/p6ESsnUBwwgd0+CgyIw1dJOyzvkJEjDCdXCzym3Y05O38c3qzIqzu+wIA+l9GnhO1OAdBvm8Tkv7kaVirId2YmP3ERD5XxJfobEoxgbWeIveZOOi1WY608a0T07K7dy4y6IxQVKa2tpfVXePzZVnES69/WwdiBDc6uigUhI6drhCrVbPlasIoIP4XQ2tDyc1aPbVqpjYwvror2BwA6D+ynJXELzr4ILXZbd1+h5L/8vRjoNormB8g5Kc9mTRrYcd68uMoJ7HajbKHFehxk583TkjLXByewNUL6fOEG8JxywULrFw9Lb0TbenohnxTlt7RtwHvazYxKUWg/T0MlVG9r8BSkW1rIzHyIravcKS/gRovCiKrudrkz6O2P1RfQUuza4bO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ER1PhWKlUAQ9tKgWVr71tV8QLKa9DNUbSGKnrCJObQB9DZbHIIgxkh1pXWXBxJlcw9MPmKAzhb6Ls569AIvY7H3S1q1Ngsih/AwTUQu/eJKJjsLdAJ9YFdFz28qeDiU7H0EElGstNH+AJqvm2Z1yYuqaNIWgY1yNNDNuPj1IflWDYPGDPV+aM1epBkrNIBxIPy+FasUkf+f/15pen3B4fpFMtsM0mIapyi+ayF/fnnY/htK9OD9mzllcOCu/4t5Qc38oa74QhMgYyK7Ecd+M1M6gQzLyGZDgXqOeVHuhKj44/xykqdhuSx8sWLwsc5gFfelCH698zAazL62Kke4QRWptr0zV30nC36XaCyskSwRNnoe0kiLQpoJ5NAtjeSCbXUDukh6Q8ipTXahLKwGqbQV8R2xTIMw/Sqy2n8OcB7ir1r1Y4rXD414FGGcyGsC4Cpsa2VLCowcOVG1CNQe1xiBylHWNTJkDT8uu0JJEzO7XwMX4bWvpdny8R8BR5IEkMIYFvzxlCXjlNzbCAZ0Etbo9ZzSQaFoxByw7VU+Btk2Cd8erLt2dzrmIY9xMMEkBjaxEsBcPDW8k847qyZGkFVe9G7Ooz1AHxN/Bt74AlU0RaHqnnFfqMwa46SkgPaSTEMD/LUAGmh5lilcYixrhauOCmytDZZ4LZdKLvas1KsGmgkmRyzH96UGU+AxdNUdk+9H9Z82mdlh8OEOpJxJSwU+PgsQQFikSIucYqamorE9peqMCOmOQ=="
}
],
"reasoning_content": "**My Thought Process for Crafting a Fable**\n\nRight, so the task at hand is to create a fable, a short story specifically designed to impart a moral lesson. I'm aiming for a character count of around 150 Chinese characters – concise but impactful.\n\nMy first inclination is to consider existing fables. \"The Fox and the Grapes\" immediately springs to mind, but it's so ubiquitous, I feel it would lack originality. \"The Oak and the Reed\" is another classic, highlighting resilience through flexibility, which is a strong theme. However, I'm leaning towards something fresh, even if the core concept might be familiar.\n\nI start brainstorming potential themes and pairs for my fable. \"The Clock and the Sundial\" could explore the tension between tradition and modernity. \"The Eagle and the Mole\" offers a perspective-based narrative. Then, \"The River and the Rock\" comes into focus. This seems promising. It encapsulates the age-old tension between brute force and persistent, subtle influence. It's a theme that lends itself well to a brief, powerful narrative.\n\nSo, I decide to go with \"The River and the Rock.\" The core idea is already quite clear: the rock, with its perceived strength and pride, is ultimately worn down by the seemingly \"weak\" river's persistent flow. It's a classic paradox, easily digestible.\n\nI mentally sketch out the narrative arc. The rock, full of arrogance, scoffs at the river's gentleness. The river, in contrast, simply continues its course, gently eroding the rock over time. The climax would be a natural event, like a flood, that demonstrates the river's enduring power and the rock's eventual degradation. The moral, of course, needs to be explicitly stated, something along the lines of \"softness overcomes hardness\" or \"persistence prevails.\"\n\nI start drafting in Chinese, focusing on vivid imagery and directness. I want the rock's pride to be palpable, and the river's quiet determination to be its counterpoint.\n\nHere's the draft I arrived at:\n\n\"In a valley, there was a giant rock, which always mocked the nearby stream: 'You weak thing, you'd shatter if you hit me.' The stream remained silent, flowing quietly, day after day, gently caressing the rock's edges. Many years later, a mountain flood broke out; the rock was washed smooth and small, eventually turning into mud and sand. And that stream, still clear, rushed towards the distance. As the rock was dissolving, it sighed: 'So, true strength isn't in hardness, but in persistent patience.' Moral: Dripping water wears through stone; gentleness conquers hardness.\"\n\nI then do a quick character count, and it's around 135 characters – perfectly within my target. The title is straightforward: \"The River and the Rock.\" The story flows, the characters are established, and the moral is clear and concise, encapsulating the essence of the fable. I feel this fulfills the brief admirably.\n\n"
},
"finish_reason": "stop",
"native_finish_reason": "STOP"
}
],
"created": 1785497001,
"model": "MaaS_Ge_3_flash_preview_20251217",
"object": "chat.completion",
"usage": {
"prompt_tokens": 8,
"completion_tokens": 752,
"total_tokens": 760,
"completion_tokens_details": {
"accepted_prediction_tokens": 0,
"audio_tokens": 0,
"image_tokens": 0,
"reasoning_tokens": 588,
"rejected_prediction_tokens": 0
},
"prompt_tokens_details": {
"audio_tokens": 0,
"audio_cached_tokens": 0,
"cached_tokens": 0,
"image_tokens": 0
}
}
}