Langbase Images API
The Images API from Langbase — 1 operation(s) for images.
The Images API from Langbase — 1 operation(s) for images.
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/langbase:langbase-images-api"
curl "https://apis.io/api/v1/apis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
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. 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: Langbase Images API
version: 1.0.0
servers:
- url: https://api.langbase.com
description: Production
tags:
- name: Images
paths:
/v1/images:
post:
operationId: images
security:
- bearerAuth: []
responses:
'200':
description: 'Langbase: Image Generation'
content:
application/json:
schema:
type: object
properties:
id:
type: string
provider:
type: string
model:
type: string
object:
type: string
created:
type: number
choices:
type: array
items:
type: object
properties:
logprobs: {}
finish_reason:
type: string
native_finish_reason:
type: string
index:
type: number
message:
type: object
properties:
role:
type: string
content:
type: string
images:
type: array
items:
type: object
properties:
type:
type: string
image_url:
type: object
properties:
url:
type: string
required:
- url
index:
type: number
required:
- type
- image_url
- index
required:
- role
- content
- images
required:
- logprobs
- finish_reason
- native_finish_reason
- index
- message
usage:
type: object
properties:
prompt_tokens:
type: number
completion_tokens:
type: number
total_tokens:
type: number
prompt_tokens_details:
type: object
properties:
cached_tokens:
type: number
required:
- cached_tokens
completion_tokens_details:
type: object
properties:
reasoning_tokens:
type: number
image_tokens:
type: number
required:
- reasoning_tokens
- image_tokens
required:
- prompt_tokens
- completion_tokens
- total_tokens
- prompt_tokens_details
- completion_tokens_details
required:
- id
- provider
- model
- object
- created
- choices
- usage
'400':
description: Bad Request
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
error:
type: object
properties:
code:
type: string
status:
type: string
message:
type: string
docs:
type: string
required:
- code
- status
- message
- docs
required:
- success
- error
'500':
description: Internal Server Error
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
error:
type: string
code:
type: string
required:
- success
- error
- code
tags:
- Images
summary: Images
x-summary-source: derived
components:
securitySchemes:
bearerAuth:
bearerFormat: Langbase-API-Key
type: http
scheme: bearer
description: 'Enter your Langbase API key with format: Bearer Langbase-API-Key'
x-provenance:
method: harvested
publisher: Langbase
source: https://api.langbase.com/openapi.json
note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
stamped by stamp-openapi-provenance.py (roadmap#793)