크레딧 예측
POST
https://api.youvico.com/api/projects/:id/files/upload.generate/estimate- MCP 도구
- 미지원
- 요청 제한
- Default
- API 권한
- ai:generate
같은 요청으로 파일 생성을 호출하면 예약할 크레딧을 반환합니다. 생성을 시작하지 않고 같은 검증과 계산을 수행합니다.
API 키나 연결이 속한 워크스페이스의 프로젝트에서만 사용할 수 있습니다. 다른 워크스페이스가 연결한 프로젝트에서는 사용할 수 없습니다.
예시
curl -X POST 'https://api.youvico.com/api/projects/bdbff5de-96d7-468f-9db0-85fe28bd6b62/files/upload.generate/estimate' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{ "mode": "ADVANCED", "output": { "type": "IMAGE", "model": "gemini-3.1-flash-image" }, "prompt": "A sneaker on a white marble table in soft morning light", "attachments": [{ "id": "GA1234567890ABCD" }], "configs": { "references": ["GA1234567890ABCD"], "aspectRatio": "1:1", "resolution": "2k" } }'
{
"data": {
"credits": 15
}
}
요청
curl -X POST 'https://api.youvico.com/api/projects/bdbff5de-96d7-468f-9db0-85fe28bd6b62/files/upload.generate/estimate' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"mode": "ADVANCED",
"output": {
"type": "IMAGE",
"model": "gemini-3.1-flash-image"
},
"prompt": "A sneaker on a white marble table in soft morning light",
"attachments": [
{
"id": "GA1234567890ABCD"
}
],
"configs": {
"references": [
"GA1234567890ABCD"
],
"aspectRatio": "1:1",
"resolution": "2k"
}
}'
응답200 OK
{
"data": {
"credits": 15
}
}
요청
경로
idstringrequired프로젝트 ID
본문
modestringrequired생성 모드
가능한 값: AUTOADVANCED
예시: ADVANCED
outputobjectrequired출력 형식과 모델
output.typestringrequired출력 형식
가능한 값: PDFMARKDOWNIMAGEVIDEO3DMUSICTTSSTT
예시: IMAGE
promptstringrequired0-20000 characters
생성 프롬프트
예시: A sneaker on a white marble table in soft morning light
attachmentsarrayrequired0-50 items, unique IDs
참고 파일
attachments[].idstringrequired프로젝트 파일 ID(FX) 또는 AI 생성 첨부 ID(GA)
예시: GA1234567890ABCD
configsobject설정. 모델의 모드별 스키마와 일치해야 함
응답
200 OK를 반환합니다.
dataobject예측 결과
data.creditsnumber예약할 크레딧
예시: 15