Yonyon AI Chat API
The Chat API from Yonyon AI, for chat.
The Chat API from Yonyon AI, for chat.
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/yonyon-ai:yonyon-ai-chat-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: Yonyon Ai Chat API
version: 1.0.0
contact:
name: Yonatan Gross
email: hi@yonyon.ai
url: https://yonyon.ai
description: 'Operations tagged Chat across 2 of this provider''s published API definitions: yonyon-ai-openapi.yml, yonyon-ai.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://yonyon.ai
description: Production. The public API is read-only and anonymous.
tags:
- name: Chat
paths:
/api/chat:
post:
operationId: askYonatan
summary: Ask a question about Yonatan Gross (streaming)
description: 'Streams a grounded answer about Yonatan''s work, projects, services, and experience. Public and rate-limited (10 requests/IP/minute). No authentication required. Browser-facing: requests must carry an Origin matching the host (CSRF). For server-side agents, prefer POST /ask.'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ChatRequest'
responses:
'200':
description: A streamed plain-text answer (concatenate the chunks).
headers:
X-API-Version:
$ref: '#/components/headers/X-API-Version'
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
RateLimit-Limit:
$ref: '#/components/headers/RateLimit-Limit'
RateLimit-Remaining:
$ref: '#/components/headers/RateLimit-Remaining'
RateLimit-Reset:
$ref: '#/components/headers/RateLimit-Reset'
content:
text/plain:
schema:
$ref: '#/components/schemas/ChatStreamText'
example: Yonatan builds production AI systems end to end.
'400':
$ref: '#/components/responses/BadRequest'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: CSRF rejected (Origin missing or not allowed).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
$ref: '#/components/responses/RateLimited'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'503':
$ref: '#/components/responses/Unavailable'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
tags:
- Chat
servers:
- url: https://yonyon.ai
description: Production. The public API is read-only and anonymous.
- url: https://yonyon.ai
description: Sandbox (read-only public API; no production side effects). Same origin; see /sandbox.md.
components:
headers:
RateLimit-Remaining:
description: RFC draft-ietf-httpapi-ratelimit-headers. Requests remaining in the current window.
schema:
type: integer
RateLimit-Limit:
description: RFC draft-ietf-httpapi-ratelimit-headers. Requests allowed per window.
schema:
type: integer
X-RateLimit-Remaining:
description: Requests remaining in the current window.
schema:
type: integer
X-RateLimit-Limit:
description: Requests allowed per window.
schema:
type: integer
RateLimit-Reset:
description: RFC draft-ietf-httpapi-ratelimit-headers. Seconds (a delta, not an epoch) until the current window resets.
schema:
type: integer
X-RateLimit-Reset:
description: Epoch seconds when the current window resets.
schema:
type: integer
X-API-Version:
description: Major version of the API serving this response. Currently always "1".
schema:
type: string
responses:
BadRequest:
description: Malformed request (invalid JSON, validation failure, or blocked content).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
Unavailable:
description: The assistant is temporarily unavailable (model backend not configured/reachable).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
RateLimited:
description: Rate limit exceeded (10 requests/IP/minute).
headers:
Retry-After:
description: Seconds to wait before retrying.
schema:
type: integer
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
RateLimit-Limit:
$ref: '#/components/headers/RateLimit-Limit'
RateLimit-Remaining:
$ref: '#/components/headers/RateLimit-Remaining'
RateLimit-Reset:
$ref: '#/components/headers/RateLimit-Reset'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
schemas:
ChatStreamText:
type: string
title: ChatStreamText
contentMediaType: text/plain
description: 'The answer, streamed as plain UTF-8 text chunks over a single response body. There is no framing: concatenate the chunks in arrival order to get the complete answer. The stream ends when the body closes.'
examples:
- Yonatan builds production AI systems end to end.
Error:
type: object
description: Typed error envelope returned for every non-2xx response.
required:
- error
- code
properties:
error:
type: string
description: Human-readable message.
code:
type: string
description: Stable machine-readable error token.
enum:
- invalid_request
- invalid_limit
- invalid_cursor
- invalid_operations
- too_many_operations
- unknown_op
- rate_limited
- unavailable
- internal_error
- method_not_allowed
- forbidden
- not_found
retry_after:
type: integer
description: Seconds to wait before retrying (present on rate_limited).
docs:
type: string
format: uri
description: Link to this OpenAPI document.
ChatRequest:
type: object
required:
- messages
properties:
messages:
type: array
maxItems: 20
items:
type: object
required:
- role
- content
properties:
role:
type: string
enum:
- user
- assistant
content:
type: string
maxLength: 2000
x-refined-from:
- yonyon-ai-openapi.yml
- yonyon-ai.json