An image-generation app in Foundry receives the generated picture as base64 text. What is base64 encoding for?
Choose an answer to check it. Afterward, select any option to review its explanation.
Base64 changes how bytes are written, not how long the model takes; it doesn't shorten generation.
The image generation model creates the picture from the prompt; base64 only packages the finished bytes.
Images are raw bytes, while JSON is text-only; base64 turns the bytes into safe text so the picture can travel inside the response, and the app decodes it back to bytes.
Base64 is an encoding anyone can reverse, not encryption; access control comes from the API key or Entra ID on the endpoint.
id q1776404faa