OpenAI curl
curl -X POST https://api.mockllm.io/fixtures \
-H "Authorization: Bearer <MOCKLLM_TOKEN>" \
-H "Content-Type: application/json" \
-d '{...}'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.
Click Generate fixture to build a reusable MockLLM fixture.curl -X POST https://api.mockllm.io/fixtures \
-H "Authorization: Bearer <MOCKLLM_TOKEN>" \
-H "Content-Type: application/json" \
-d '{...}'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" }],
});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"}]}]}'