Repository navigation
Document LLM chat completions; sync alt_formats from the latest API spec - #23
Merged
Merged
Conversation
- openai-compatibility: new "Chat completions (LLMs)" section for POST /v1/chat/completions (13 models, prices, streaming, tools, structured outputs, image input, reasoning, usage.cost, errors); LLM fields in /v1/models; success responses now carry X-RateLimit-*; Idempotency-Key is not applied to chat - models, pricing, introduction, FAQ, Open WebUI: mention the LLMs - openapi(-v2).json: add alt_formats to txt2img, img2img, upscale and background removal; results_alt_formats is opt-in (verified live) - websockets, webhooks: note that results_alt_formats needs alt_formats Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
POST https://oai.deapi.ai/v1/chat/completionsis live in production, but the docs still said it was "Not available". This PR documents it and syncs the latest backend spec dump (client-api-v2-docs, 2026-11-20).Chat completions (LLMs)
openai-compatibility.mdxhas a new section, "Chat completions (LLMs)":/v1/modelson 2026-11-20), andjson_schema/stopsupportinclude_usage), tool calling, structured outputs, image input,reasoning_effortandreasoning_content,usage.costandX-DeAPI-Cost, and the chat-specific error codesGET /v1/models: documented the extra fields (context_length,architecture,top_provider,supported_parameters,pricing)/v1responses now carryX-RateLimit-*. The old warning said they never do.Idempotency-Keyis not applied to chat. A repeated request runs and is billed again./v1/responsesstill answers 404./priceendpoint), introduction, FAQ, and Open WebUI (new "Chat with deAPI LLMs" setup and troubleshooting rows).Spec sync:
alt_formatsalt_formats(boolean, defaultfalse) to Txt2Img, Img2Img, ImageUpscale and ImageRemoveBg inopenapi.jsonandopenapi-v2.json, and updated theresults_alt_formatsdescription.videos/replacementspaths stay out of the spec on purpose (see da44f13).results_alt_formatsneedsalt_formats: true.Live verification (2026-11-20, test account)
include_usage, a full tool-call round trip,json_schema,json_object, base64 image input,developerrole, andreasoning_effort(none,minimal,low,high,xhigh).n=2,logprobs,top_logprobs,stopon models that don't list it,temperature: 5, and an invalidreasoning_effort.alt_formats: the sameFlux1schnelljob returnsresults_alt_formats: nullwithout the flag and both JPG and WebP with it. On multipart (Ben2),trueand1both work.mintlify broken-linksreports no new broken links compared withmain.Not in this PR
llms.txt(served from deapi.ai, not from this repo) is updated locally and has to be deployed separately. That update also fixes the 404 linkapp.deapi.ai/dashboard/api-keys, which becomes/settings/api-keys.🤖 Generated with Claude Code