AI 에이전트
AI 에이전트용 문서
이 문서는 사람뿐만 아니라 AI 어시스턴트가 읽도록 작성되었습니다. 아래 진입점 중 하나를 에이전트에 전달하면 매개변수 이름이나 가격을 추측하지 않고 올바른 통합 코드를 작성할 수 있습니다.
진입점
| URL | 설명 |
|---|---|
| https://doitong.com/developers/llms.txt | llms.txt 형식의 인덱스: 모든 가이드와 모델을 한 줄로 설명합니다. |
| https://doitong.com/developers/llms-full.txt | 모든 가이드의 전체 내용, 주요 모델의 전체 내용, 그리고 1,496개 모델 전체의 핵심 정보(id, 제작사, 가격, 전체 페이지 링크)를 하나의 Markdown 파일에 담았습니다. |
/<lang>/developers/llms.txt |
다른 사이트 언어로 제공되는 동일한 인덱스입니다. 예를 들어 https://doitong.com/de/developers/llms.txt와 같습니다(영어가 기본값입니다). |
<any page>.md |
페이지의 Markdown 버전입니다. 예를 들어 https://doitong.com/developers/models/flux/schnell.md 또는 https://doitong.com/developers/docs/quickstart.md와 같습니다. |
/developers/models/<id>/llms.txt |
모델의 .md 버전과 동일합니다. |
| https://doitong.com/developers/openapi.json | 코드 생성기를 위한 OpenAPI 3.1입니다. 주요 모델의 모든 엔드포인트와 타입이 지정된 요청 본문을 포함하며, ?model=<id>, ?category=<id> 또는 ?models=all을 추가하면 다른 모델도 포함됩니다. |
https://api.doitong.ru/v1/models |
JSON 형식의 카탈로그입니다(키가 필요하지 않음). |
각 모델의 Markdown 페이지에는 USD 및 API 크레딧 기준 가격, 허용되는 모든 값이 포함된 각 매개변수, 필수 항목만 포함한 예제와 전체 예제, 응답 형식, 그리고 curl, JavaScript, Python 및 MCP용 바로 사용할 수 있는 코드가 있습니다.
AI용 복사
모든 모델 페이지에는 AI용 복사 버튼이 있습니다. 페이지를 Markdown으로 복사하거나, 어시스턴트가 Markdown 버전을 참조하도록 하는 프롬프트와 함께 ChatGPT 또는 Claude에서 열 수 있습니다.
작동하는 프롬프트
이 내용을 Claude, ChatGPT 또는 Cursor에 붙여넣은 다음 만들고 싶은 것을 설명하세요.
프롬프트
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.
에이전트가 직접 모델을 호출하도록 하기
에이전트가 미디어를 직접 생성하도록 하려면 API 크레딧 한도가 설정된 키로 MCP 서버에 연결하세요. 그러면 에이전트는 모델 검색, 견적 확인, 실행 및 결과 가져오기를 위한 도구를 사용할 수 있으며, 한도보다 많이 사용할 수 없습니다.