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

# Generate Recipe Image

> Generate a high-quality image for a recipe.



## OpenAPI

````yaml https://www.mrcook.app/api/business/openapi.json post /v1/recipes/:recipeId/image
openapi: 3.1.0
info:
  title: Mr. Cook API
  version: 1.0.0
  description: API for integrating recipe generation into your products
  contact:
    email: feedback@mrcook.app
  termsOfService: https://www.mrcook.app/legal/api-terms
servers:
  - url: https://api.mrcook.app
    description: Production API
security: []
paths:
  /v1/recipes/:recipeId/image:
    post:
      summary: Generate Recipe Image
      description: Generate a high-quality image for a recipe.
      parameters:
        - schema:
            type: string
            description: >-
              The ID of the recipe to generate an image for. How to create a
              recipe: https://docs.mrcook.app/business-api/generate-recipe
            example: 018ff556-a36a-7cb8-95a1-a2ac02da3e93
          required: true
          description: >-
            The ID of the recipe to generate an image for. How to create a
            recipe: https://docs.mrcook.app/business-api/generate-recipe
          name: recipeId
          in: path
      responses:
        '200':
          description: Successfully generated image.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  data:
                    type: object
                    properties:
                      url:
                        type: string
                        description: The URL of the generated image
                        example: >-
                          https://images.mrcook.app/recipe-image/018ff556-a36a-7cb8-95a1-a2ac02da3e93
                    required:
                      - url
                required:
                  - success
                  - data
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: 'How to get your API key: https://docs.mrcook.app/business-api/api-key'

````