LovPics AI Image Gen API

The ai-image-gen API from LovPics — 3 operation(s) for ai-image-gen.

GitHub OpenAPI

Operations 3

POST /api/ai-image-gen/generate Generate AI images from a text prompt (optionally with reference images)… #
GET /api/ai-image-gen/list Get User Images #
GET /api/ai-image-gen/health Health #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/lovpics-com:lovpics-com-ai-image-gen-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

lovpics-com-ai-image-gen-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Virtual Studio AI Image Gen API
  version: 0.1.0
tags:
- name: ai-image-gen
paths:
  /api/ai-image-gen/generate:
    post:
      tags:
      - ai-image-gen
      summary: Generate AI images from a text prompt (optionally with reference images)…
      description: 'Generate images from text prompt with optional reference images.


        Args:

        request: GenerateImageRequest with prompt, reference images, model type, etc.

        current_user: Authenticated user information


        Returns:

        GenerateImageResponse with list of generated image URLs'
      operationId: generate_images_api_ai_image_gen_generate_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GenerateImageRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenerateImageResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /api/ai-image-gen/list:
    get:
      tags:
      - ai-image-gen
      summary: Get User Images
      description: 'Get all AI-generated images for the current user.


        Args:

        current_user: Authenticated user information


        Returns:

        List of user''s generated images with metadata'
      operationId: get_user_images_api_ai_image_gen_list_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImageListResponse'
      security:
      - HTTPBearer: []
  /api/ai-image-gen/health:
    get:
      tags:
      - ai-image-gen
      summary: Health
      description: Health check endpoint for AI Image Generation service.
      operationId: health_api_ai_image_gen_health_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
components:
  schemas:
    ImageListResponse:
      properties:
        images:
          items:
            $ref: '#/components/schemas/ImageRecord'
          type: array
          title: Images
      additionalProperties: true
      type: object
      required:
      - images
      title: ImageListResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    ImageRecord:
      properties:
        id:
          type: string
          title: Id
          examples:
          - '321'
        imageUrl:
          type: string
          title: Imageurl
          examples:
          - https://…/gen_1.png
        imagePath:
          anyOf:
          - type: string
          - type: 'null'
          title: Imagepath
          examples:
          - ai-image-gen/gen_1.png
        prompt:
          anyOf:
          - type: string
          - type: 'null'
          title: Prompt
          examples:
          - Premium perfume bottle
        aspectRatio:
          anyOf:
          - type: string
          - type: 'null'
          title: Aspectratio
          examples:
          - '1:1'
        credits:
          anyOf:
          - type: integer
          - type: 'null'
          title: Credits
          examples:
          - 2
      additionalProperties: true
      type: object
      required:
      - id
      - imageUrl
      title: ImageRecord
    GenerateImageResponse:
      properties:
        success:
          type: boolean
          title: Success
        images:
          items:
            $ref: '#/components/schemas/ImageResponse'
          type: array
          title: Images
        message:
          type: string
          title: Message
        creative_ids:
          items:
            anyOf:
            - type: integer
            - type: 'null'
          type: array
          title: Creative Ids
          default: []
      type: object
      required:
      - success
      - images
      - message
      title: GenerateImageResponse
    GenerateImageRequest:
      properties:
        prompt:
          type: string
          title: Prompt
        referenceImages:
          items:
            type: string
          type: array
          title: Referenceimages
          default: []
        modelType:
          type: string
          title: Modeltype
          default: basic
        numberOfVariants:
          type: integer
          title: Numberofvariants
          default: 1
        aspectRatio:
          type: string
          title: Aspectratio
          default: '1:1'
        imageOutputSize:
          type: string
          title: Imageoutputsize
          default: 1K
      type: object
      required:
      - prompt
      title: GenerateImageRequest
    ImageResponse:
      properties:
        imageUrl:
          type: string
          title: Imageurl
        imagePath:
          type: string
          title: Imagepath
      type: object
      required:
      - imageUrl
      - imagePath
      title: ImageResponse
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer