What this tool does
Gemini Message JSON Builder formats and validates Gemini GenerateContent request bodies.
Build validated Gemini GenerateContent JSON with typed errors and copyable fixed examples.
Gemini Message JSON Builder formats and validates Gemini GenerateContent request bodies.
It helps developers build provider-specific contents arrays, system instructions, and generation config without memorizing Gemini JSON shape.
Gemini GenerateContent uses `contents` with `parts`, optional `system_instruction`, and model-role responses instead of assistant-role messages. The browser builds those fields from the form inputs without changing your source text.
Use representative user content and system instructions without sensitive production data.
Compare with OpenAI and Anthropic builders before porting prompts because provider JSON shapes are not interchangeable. OpenAI and Anthropic use message arrays, while Gemini uses contents and parts.
Gemini uses `user` and `model` roles rather than OpenAI's `assistant` role, so conversions should be checked before API use.
JSON building happens locally in your browser. No Gemini request, token upload, or provider API call is made.
Gemini API schemas can vary by endpoint, SDK, and modality. Validate final payloads against current Google documentation.
No. It only formats JSON.
The tool returns a typed error and a copyable fixed example.
Turn system instructions, user content, and model labels into a copyable JSON payload for tests or API docs.
Map assistant examples into Gemini's model role shape before comparing payloads across providers.
Use the typed validation report and fixed example to repair incomplete request bodies before calling the Gemini API.
Move between OpenAI, Anthropic, and Gemini message payload builders, Markdown-to-message conversion, chat transcript formatting, and JSON prompt escaping while keeping provider-schema differences explicit.