{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreih5fkhcw7xrjf4cblbovnut5ng6qegnfhuphikjmlzaeblqxlx2om",
"uri": "at://did:plc:lk3jfj3zq4k4wxnk474axylu/app.bsky.feed.post/3mnnkdbamtcd2"
},
"path": "/t/getting-error-code-400-on-both-vision-and-pdf-base64-input-response-api/1382707#post_14",
"publishedAt": "2026-06-06T19:26:28.000Z",
"site": "https://community.openai.com",
"textContent": "Well, I fixed it: Both Vision and PDF base64 issues:\n\n_Images_ : The curly brackets needed to be removed.\n\n“type”: “input_image”, “image_url”: “data:image/jpeg;base64, **{**base64_image**}**”\n\n_PDFs_ : The space before base64_file needed to be removed.\n\n“file_data”:“data:application/pdf;base64, **base64_file** ”\n\nDon’t know why these issues were not raised over the last year. Go figure… I quess Codex could have picked it up, but I prefer to keep my brain active - helps when one gets older. Time to take a nap…",
"title": "Getting error code 400 on both Vision and PDF base64 input - Response API"
}