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 koala bear in a tree',
  model:  'dall-e-3',
  n: 1,
  size: '1024x1024',
});

console.log(image.data[0].url);
// → a signed link to the picture, valid for 15 minutes

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
  • ✓1440 free requests per day
  • ✓CORS enabled — call from any localhost
  • ✓No match? A placeholder picture showing your prompt

What you don't get

  • ✗Generation from your prompt — pictures are made ahead of time
  • ✗Unique images — same noun always returns the same image
  • ✗Resized images — size is accepted, but pictures come at the size they were made
  • ✗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