Mock image generation API

Looks real. Costs nothing.

An OpenAI-compatible Images API for development and testing. Swap the base URL when you go live.

Not real AI — pre-made pictures matched to the words in your prompt.

Three steps, zero friction

1

Sign in with email

Enter your email and click the magic link we send. No password, no OAuth.

2

Create your key

You get one key (tsk_…). Copy it once — we only store the hash.

3

Point your code at us

Set baseURL to https://mirage.tinshe.com/v1. Your existing SDK calls work as-is.

Drop-in replacement

Add one line. Use the same SDK. Change it back when you go live.

import OpenAI from 'openai';

const client = new OpenAI({
  apiKey:  'YOUR_TINSHE_KEY',
  baseURL: 'https://mirage.tinshe.com/v1',
});

const image = await client.images.generate({
  prompt: 'a bird in a tree',
  model:  'dall-e-3',
  n: 1,
  size: '1024x1024',
});

console.log(image.data[0].url);
// → https://mirage.tinshe.com/images/bird-01.jpg

What you get

  • Real-looking images matched to nouns in your prompt
  • OpenAI Images API-compatible (url & b64_json)
  • Works with official openai SDK — just set baseURL
  • 200 free requests per day
  • CORS enabled — call from any localhost
  • Deterministic fallback — same prompt → same image

What you don't get

  • Real AI image generation — these are pre-made photos
  • Unique images — same noun always returns the same image
  • Resized images — size param is accepted but ignored
  • Edits or variations endpoints (501 Not Implemented)
  • Uptime guarantees — free service, use at your own risk

Ready to start?

Sign in with your email and get your key in under a minute.

Get your free key