API Stock
Generate AI video, images and music. Browse models and prices; OAuth and one prepaid balance.
사용해야 할까요
품질 및 안전성
발견 사항 (1)
- LOWget_account에서
도구 정의와 프로토콜 준수에 대한 자동 분석을 기반으로 합니다.
컨텍스트 비용
이는 서버의 도구가 모델의 컨텍스트에 로드될 때마다 소비되는 대략적인 토큰 수입니다. 수치가 높을수록 다른 작업에 사용할 수 있는 주의가 줄어듭니다.
설치
원클릭 설치
`claude_desktop_config.json` 파일에 다음을 추가하세요:
{
"mcpServers": {
"api-stock": {
"url": "https://api.api-stock.com/mcp"
}
}
}원격 엔드포인트
https://api.api-stock.com/mcpstreamable-http할 수 있는 일
도구 목록
도구 (8)
🟢list_models(type, query)
List the video, image and music models available, with the starting price of each. Call this first to pick a model.
입력 스키마
{
"type": "object",
"properties": {
"type": {
"description": "Only models that produce this kind of media.",
"type": "string",
"enum": [
"video",
"image",
"music"
]
},
"query": {
"description": "Case-insensitive match on the model id, name or vendor.",
"type": "string",
"maxLength": 100
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢get_model(model)
The full parameter list, price table and an example request for one model. Call this before create_generation: parameters differ between models.
입력 스키마
{
"type": "object",
"properties": {
"model": {
"type": "string",
"description": "Model id from list_models."
}
},
"required": [
"model"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢estimate_cost(model, input)
The exact amount create_generation would charge for this request. Nothing is created or charged.
입력 스키마
{
"type": "object",
"properties": {
"model": {
"type": "string",
"description": "Model id from list_models, for example `veo3.1-fast`."
},
"input": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {},
"description": "Model parameters, exactly as get_model lists them (camelCase). Media inputs are public URLs."
}
},
"required": [
"model",
"input"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟡create_generation(model, input, webhook, idempotencyKey, maxCostUsd)
Start a generation. Charges the user's balance and returns a taskId at once; the result arrives later — poll get_task. A failed generation is refunded.
입력 스키마
{
"type": "object",
"properties": {
"model": {
"type": "string",
"description": "Model id from list_models, for example `veo3.1-fast`."
},
"input": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {},
"description": "Model parameters, exactly as get_model lists them (camelCase). Media inputs are public URLs."
},
"webhook": {
"description": "HTTPS URL to call when the generation completes.",
"type": "string",
"format": "uri"
},
"idempotencyKey": {
"description": "Repeat a call with the same key and the same request to get the same task instead of a second charge.",
"type": "string",
"pattern": "^[A-Za-z0-9_.:-]{1,128}$"
},
"maxCostUsd": {
"description": "Refuse the request if it would cost more than this.",
"type": "number",
"minimum": 0
}
},
"required": [
"model",
"input"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟡create_upload_url(contentLength, contentType)
Get a signed URL to PUT one local image, video or audio file (up to 25 MiB). Upload is free, but requires a positive balance. After PUT succeeds, use publicUrl as a generation input. The upload URL expires in 10 minutes; at most 20 URLs per minute per user.
입력 스키마
{
"type": "object",
"properties": {
"contentLength": {
"type": "integer",
"minimum": 1,
"maximum": 26214400,
"description": "Exact file size in bytes. The upload must have this size."
},
"contentType": {
"type": "string",
"enum": [
"image/png",
"image/jpeg",
"image/webp",
"video/mp4",
"video/quicktime",
"video/webm",
"audio/mpeg",
"audio/wav",
"audio/mp4"
],
"description": "MIME type of the input file."
}
},
"required": [
"contentLength",
"contentType"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢get_task(taskId, waitSeconds)
Status of a generation and, once finished, the URLs of its files. Pass waitSeconds to wait for it to finish instead of polling in a loop.
입력 스키마
{
"type": "object",
"properties": {
"taskId": {
"type": "string",
"description": "The taskId create_generation returned."
},
"waitSeconds": {
"description": "Wait up to this many seconds for the task to finish (max 30).",
"type": "integer",
"minimum": 0,
"maximum": 30
}
},
"required": [
"taskId"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢list_generations(page, pageSize, type, status)
The user's generations, newest first.
입력 스키마
{
"type": "object",
"properties": {
"page": {
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
},
"pageSize": {
"type": "integer",
"minimum": 1,
"maximum": 20
},
"type": {
"type": "string",
"enum": [
"video",
"image",
"music"
]
},
"status": {
"type": "string",
"enum": [
"not_started",
"processing",
"finished",
"failed",
"expired"
]
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢get_account
The prepaid balance generations are charged from, and where to top it up.
입력 스키마
{
"type": "object",
"properties": {},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}커뮤니티
증거