AI Data Generation
Fill your mock responses with realistic data, from a template, a JSON Schema or a plain-English description.
Where to Find It
Open the REST API form, on the homepage or in a project, and press "Generate data" next to the response editor. When the preview looks right, press "Use this data" and it becomes the response body.
Generate From a Schema
Records are built in your browser from a JSON Schema, so you can regenerate as often as you like, free and without an account.
- 1
Pick a starting template: Users, Products, Orders or Paginated posts
- 2
Edit the JSON Schema to match your API
- 3
When the response is a list, choose how many records you want (up to 100)
- 4
Press Generate, check the preview, then press "Use this data"
Realistic values with Faker
Add a "faker" key with any Faker method to a property, such as person.fullName or internet.email, to get realistic values instead of random strings.
{
"type": "object",
"properties": {
"id": { "type": "integer", "minimum": 1 },
"name": { "type": "string", "faker": "person.fullName" },
"email": { "type": "string", "faker": "internet.email" }
},
"required": ["id", "name", "email"]
}Describe It to AI
Type what you need and press "Write schema with AI". AI writes the schema once; you can then edit it and regenerate as often as you like, for free.
Example description: 10 blog posts with a title, author name and email, 1-3 tags and a published date
What you need
- An account with a confirmed email address
- A description of up to 500 characters
- AI generations left in your workspace today
AI Generation Limits
Each workspace gets a daily number of AI generations for every filled seat, shared by everyone in it. Generating for a project uses that project's workspace; anywhere else uses your own. The dialog shows how many are left today.
- The workspace owner can set a daily cap for each member
- Repeating a request that was already answered doesn't use a generation
- Failures on our side don't use a generation
- Up to 5 AI requests a minute per person
- Read-only workspaces can't use AI generation
Privacy
Your description is sent to OpenAI only to write the schema, and we don't use your mocks or prompts to train AI models. Don't put real personal data or secrets in a description. Read the Privacy Policy
Troubleshooting
The AI option isn't available
Solution: Sign in and confirm your email address. If AI is still unavailable, the service may be busy; you can always generate data from a schema.
I've run out of AI generations
Solution: The allowance resets the next day. Meanwhile, edit the schema by hand and regenerate as often as you like. A paid plan raises the allowance.
"That's too much data for one response"
Solution: Lower the record count or the nesting in the schema.
"The schema isn't valid JSON"
Solution: Look for missing or trailing commas, unquoted keys and unescaped quotes in the schema.
Try It on Your Next Mock
Open the REST API form and press "Generate data". Generating from a schema works without an account; sign in to write schemas with AI.