Ur spending $2400 a year to use AI ?
Ur spending $2400 a year to use AI ?
image_url in the prompt. Full File API Endpoint documentation
openAI/dall-e-3 image generation. 


thinking_budget when using google-ai-studio models on ai gateway? Google has thinking enabled by default for models like gemini-flash-2.5, and to request a response without thinking we should set thinking_budget to 0, but I can't figure out how to do this when using cloudflare ai gateway.curl --location --request OPTIONS ‘https://your-gateway/openrouter/v1/models’7000) Error: The requested Durable Object is temporarily disabled, please contact us for details7002: Not Found on Patch Gateway Log. But going into the ai gateway dashboard and I can find the exact log from the url
const url = await gateway.getUrl();
const client = new OpenAI({
apiKey: apiKey,
baseURL: `${url}compat`,
});
for (const file of files) {
const base64Content = Buffer.from(file.content).toString("base64");
const messageContent: Array<any> = [
{
type: "text",
text: fullPrompt,
},
];
messageContent.push({
type: "image_url", // Use "image_url" for all files.
image_url: {
url: `data:${file.contentType};base64,${base64Content}`,
},
});
}
const completionPromise = client.chat.completions.create({
model: model,
messages: [
{
role: "user",
content: messageContent,
},
],
response_format: zodResponseFormat(responseSchema, "query_response"),
});{
"model": "gpt-4o-mini-transcribe",
"response_format": "text",
"file": {}
}{
"error": {
"message": "Audio file processing failed",
"type": "server_error",
"param": null,
"code": null
}
}< HTTP/2 500
< date: Tue, 12 Aug 2025 08:49:47 GMT
< content-type: application/json
< content-length: 101
< server: cloudflare
< nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
< vary: Accept-Encoding
< cf-cache-status: DYNAMIC
< strict-transport-security: max-age=15552000; includeSubDomains; preload
< x-content-type-options: nosniff
< cf-ray: 96deb8af99b71d6d-SIN
< alt-svc: h3=":443"; ma=86400
{"success":false,"result":[],"messages":[],"error":[{"code":2002,"message":"Internal server error"}]}