# Dogfennaeth ar gyfer asiantau AI

Mae'r ddogfennaeth hon wedi'i chreu i'w darllen gan gynorthwywyr AI yn ogystal â phobl. Rhowch un o'r pwyntiau mynediad isod i'ch asiant a
gall ysgrifennu cod integreiddio cywir heb ddyfalu enwau paramedrau na phrisiau.

## Pwyntiau mynediad

| URL | Beth ydyw |
|---|---|
| [https://doitong.com/developers/llms.txt](https://doitong.com/developers/llms.txt) | Mynegai yn fformat [llms.txt](https://llmstxt.org): pob canllaw a model gyda disgrifiad un llinell. |
| [https://doitong.com/developers/llms-full.txt](https://doitong.com/developers/llms-full.txt) | Pob canllaw yn llawn, y modelau dan sylw yn llawn a hanfodion pob un o'r 1,496 model (id, gwneuthurwr, pris, dolen i'r dudalen lawn) mewn un ffeil Markdown. |
| `/<lang>/developers/llms.txt` | Yr un mynegai â'r canllawiau mewn iaith arall ar y wefan, er enghraifft `https://doitong.com/de/developers/llms.txt` (Saesneg yw'r rhagosodedig). |
| `<any page>.md` | Gefell Markdown tudalen, er enghraifft [https://doitong.com/developers/models/flux/schnell.md](https://doitong.com/developers/models/flux/schnell.md) neu [https://doitong.com/developers/docs/quickstart.md](https://doitong.com/developers/docs/quickstart.md). |
| `/developers/models/<id>/llms.txt` | Yr un fath â gefell `.md` y model. |
| [https://doitong.com/developers/openapi.json](https://doitong.com/developers/openapi.json) | OpenAPI 3.1 ar gyfer generaduron cod: pob diweddbwynt a chorff cais wedi'i deipio o'r modelau dan sylw; mae `?model=<id>`, `?category=<id>` neu `?models=all` yn ychwanegu rhai eraill. |
| `https://api.doitong.ru/v1/models` | Y catalog fel JSON (nid oes angen allwedd). |

Mae gan dudalen Markdown pob model ei bris mewn USD a chredydau API, pob paramedr gyda'r holl werthoedd a ganiateir, enghraifft sy'n cynnwys y rhai gofynnol yn unig ac
enghraifft lawn, siâp yr ymateb, a chod parod ar gyfer curl, JavaScript, Python a MCP.

## Copïo ar gyfer AI

Mae gan bob tudalen fodel fotwm **Copïo ar gyfer AI**: copïwch y dudalen fel Markdown, neu agorwch hi yn ChatGPT neu Claude gyda
anogiad sy'n cyfeirio'r cynorthwyydd at y fersiwn Markdown.

## Anogiad sy'n gweithio

Gludwch hwn i Claude, ChatGPT neu Cursor, yna disgrifiwch yr hyn rydych am ei adeiladu:

```text Anogiad
I want to generate images/video/audio with the Doitong API.
Read https://doitong.com/developers/llms.txt first, then the .md page of each model you plan to use.
Facts: base URL https://api.doitong.ru/v1; auth header "Authorization: Bearer <key>" with the key from the
DOITONG_API_KEY environment variable; run with POST /run/{model_id}?wait=20 and, if the status is
still queued or running, poll GET /requests/{id}?wait=20; outputs[].url are file URLs on Doitong storage
(kept forever by default; add ?storage=temporary for throwaway runs, deleted after 7 days).
Get the price first with POST /quote/{model_id} (same body): exact, or for a model charged by usage the
most the run can cost (the unused part is refunded). Prices are in USD; 1000 API credits = 1 USD.
Use the parameter names from the model page; never invent parameters.
```

## Gadewch i'r asiant alw modelau ei hun

Er mwyn caniatáu i asiant gynhyrchu cyfryngau'n uniongyrchol, cysylltwch y [gweinydd MCP](https://doitong.com/developers/docs/mcp) ag allwedd sydd â
chyllideb mewn credydau API. Yna mae gan yr asiant offer i chwilio modelau, dyfynnu, rhedeg a nôl canlyniadau, ac ni all wario mwy na'r
gyllideb.
