> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tryyomira.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create simulation

> Create an asynchronous reaction simulation job.



## OpenAPI

````yaml /openapi.json post /api/simulate
openapi: 3.1.0
info:
  title: Yomira API
  version: 0.1.0
  description: >-
    Create context-first reaction simulations and retrieve JSON or Markdown
    exports.
servers:
  - url: https://tryyomira.com
security: []
paths:
  /api/simulate:
    post:
      summary: Create simulation
      description: Create an asynchronous reaction simulation job.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SimulationRequest'
      responses:
        '202':
          description: Simulation queued
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SimulationQueued'
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: Insufficient credits
      security:
        - ApiKeyAuth: []
components:
  schemas:
    SimulationRequest:
      type: object
      required:
        - objective
        - artifact
        - audience
      properties:
        objective:
          type: string
          example: Decide whether to publish this landing page.
        artifact:
          type: object
          required:
            - type
            - content
          properties:
            type:
              type: string
              example: landing_page
            content:
              type: string
              example: Paste the exact artifact people will see.
        audience:
          type: object
          required:
            - description
          properties:
            description:
              type: string
              example: >-
                AI founders, agency owners, and product builders who already use
                coding agents.
        simulation:
          type: object
          properties:
            mode:
              type: string
              enum:
                - fast
                - standard
              example: fast
            target_n:
              type: integer
              minimum: 1
              example: 40
            max_agent_voices:
              type: integer
              example: 8
            max_output_tokens:
              type: integer
              example: 30000
    SimulationQueued:
      type: object
      properties:
        simulation_id:
          type: string
          example: d7b4c6a2-...
        status:
          type: string
          example: queued
        polling:
          type: object
        downloads:
          type: object
        billing:
          type: object
    Error:
      type: object
      properties:
        error:
          type: string
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````