LovPics AI Models API
The ai-models API from LovPics — 6 operation(s) for ai-models.
The ai-models API from LovPics — 6 operation(s) for ai-models.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/lovpics-com:lovpics-com-ai-models-api"
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.
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: 3.2.0
info:
title: Virtual Studio AI Models API
version: 0.1.0
tags:
- name: ai-models
paths:
/api/ai-models/save:
post:
tags:
- ai-models
summary: Save Model
operationId: save_model_api_ai_models_save_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/UploadRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/UploadResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- HTTPBearer: []
/api/ai-models/upload:
post:
tags:
- ai-models
summary: Upload Model
operationId: upload_model_api_ai_models_upload_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/UploadRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/UploadResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- HTTPBearer: []
/api/ai-models/generate:
post:
tags:
- ai-models
summary: Generate Model
operationId: generate_model_api_ai_models_generate_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/GenerateRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/GenerateResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- HTTPBearer: []
/api/ai-models/validate-image:
post:
tags:
- ai-models
summary: Validate Image
description: 'Validate that an uploaded model image contains exactly one person.
Args:
req: ValidateImageRequest containing the base64 image
current_user: Authenticated user information
Returns:
ValidateImageResponse with validation result and reason'
operationId: validate_image_api_ai_models_validate_image_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ValidateImageRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/ValidateImageResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- HTTPBearer: []
/api/ai-models/models:
get:
tags:
- ai-models
summary: Get Models
operationId: get_models_api_ai_models_models_get
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/ModelListResponse'
security:
- HTTPBearer: []
/api/ai-models/generate-chat:
post:
tags:
- ai-models
summary: Generate Model From Chat
description: 'Generate AI model from natural language description (chat-based) with chat history context.
Args:
req: GenerateChatRequest containing chat history (messages array) and aspect ratio
current_user: Authenticated user information
Returns:
GenerateResponse with generated image URL'
operationId: generate_model_from_chat_api_ai_models_generate_chat_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/GenerateChatRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/GenerateResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- HTTPBearer: []
components:
schemas:
ValidateImageRequest:
properties:
imageB64:
type: string
title: Imageb64
type: object
required:
- imageB64
title: ValidateImageRequest
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
ModelListResponse:
properties:
success:
type: boolean
title: Success
examples:
- true
models:
items:
additionalProperties: true
type: object
type: array
title: Models
message:
anyOf:
- type: string
- type: 'null'
title: Message
examples:
- Models retrieved successfully
additionalProperties: true
type: object
required:
- success
- models
title: ModelListResponse
UploadResponse:
properties:
success:
type: boolean
title: Success
imageUrl:
type: string
title: Imageurl
type: object
required:
- success
- imageUrl
title: UploadResponse
GenerateChatRequest:
properties:
messages:
items:
$ref: '#/components/schemas/ChatMessage'
type: array
title: Messages
previousImageUrl:
anyOf:
- type: string
- type: 'null'
title: Previousimageurl
aspectRatio:
anyOf:
- type: string
- type: 'null'
title: Aspectratio
default: '3:4'
type: object
required:
- messages
title: GenerateChatRequest
GenerateResponse:
properties:
success:
type: boolean
title: Success
imageUrl:
type: string
title: Imageurl
type: object
required:
- success
- imageUrl
title: GenerateResponse
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
ValidateImageResponse:
properties:
valid:
type: boolean
title: Valid
reason:
anyOf:
- type: string
- type: 'null'
title: Reason
type: object
required:
- valid
title: ValidateImageResponse
ChatMessage:
properties:
role:
type: string
title: Role
description: 'Role: ''user'' or ''assistant'''
content:
type: string
title: Content
description: Message content
type: object
required:
- role
- content
title: ChatMessage
UploadRequest:
properties:
name:
type: string
title: Name
imageB64:
type: string
title: Imageb64
gender:
type: integer
title: Gender
origin:
type: integer
title: Origin
type: object
required:
- name
- imageB64
- gender
- origin
title: UploadRequest
GenerateRequest:
properties:
prompt:
anyOf:
- type: string
- type: 'null'
title: Prompt
photo_style:
anyOf:
- type: string
- type: 'null'
title: Photo Style
gender:
anyOf:
- type: string
- type: 'null'
title: Gender
age:
anyOf:
- type: string
- type: 'null'
title: Age
origin:
anyOf:
- type: string
- type: 'null'
title: Origin
body_type:
anyOf:
- type: string
- type: 'null'
title: Body Type
clothing_style:
anyOf:
- type: string
- type: 'null'
title: Clothing Style
mood:
anyOf:
- type: string
- type: 'null'
title: Mood
hair_color:
anyOf:
- type: string
- type: 'null'
title: Hair Color
hair_type:
anyOf:
- type: string
- type: 'null'
title: Hair Type
eye_color:
anyOf:
- type: string
- type: 'null'
title: Eye Color
instructions:
anyOf:
- type: string
- type: 'null'
title: Instructions
aspectRatio:
anyOf:
- type: string
- type: 'null'
title: Aspectratio
default: '3:4'
type: object
title: GenerateRequest
securitySchemes:
HTTPBearer:
type: http
scheme: bearer