← Back to MockLLM
Demo fixture wizard

Turn one real LLM response into a reusable mock fixture.

Paste a response from OpenAI, Anthropic, or Gemini. MockLLM generates a fixture you can save plus copy-paste snippets for CI smoke tests and sales demos.

Generated fixture

Copy JSON
Click Generate fixture to build a reusable MockLLM fixture.

OpenAI curl

curl -X POST https://api.mockllm.io/fixtures \
  -H "Authorization: Bearer <MOCKLLM_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{...}'

Anthropic SDK

import Anthropic from "@anthropic-ai/sdk";

const anthropic = new Anthropic({
  apiKey: "<MOCKLLM_TOKEN>",
  baseURL: "https://api.mockllm.io/v1",
});

await anthropic.messages.create({
  model: "gpt-4o-mini",
  max_tokens: 256,
  messages: [{ role: "user", content: "Run the deterministic demo" }],
});

Gemini curl

curl "https://api.mockllm.io/v1beta/models/gpt-4o-mini:generateContent?key=<MOCKLLM_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"contents":[{"parts":[{"text":"Run the deterministic demo"}]}]}'