{
  "openapi": "3.0.1",
  "info": {
    "title": "Chinese LLM Bulk Prompt Runner DeepSeek Qwen Kimi",
    "description": "Run Chinese LLM prompts in bulk with DeepSeek, Qwen or Kimi. Deduplicate answers, validate JSON and export token usage with bounded buyer costs.",
    "version": "0.1",
    "x-build-id": "XZPxBrMheXOoSSOwf"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/zinin~chinese-llm-bulk-prompt-runner/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-zinin-chinese-llm-bulk-prompt-runner",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/zinin~chinese-llm-bulk-prompt-runner/runs": {
      "post": {
        "operationId": "runs-sync-zinin-chinese-llm-bulk-prompt-runner",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/zinin~chinese-llm-bulk-prompt-runner/run-sync": {
      "post": {
        "operationId": "run-sync-zinin-chinese-llm-bulk-prompt-runner",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "items": {
            "title": "Input items",
            "maxItems": 500,
            "type": "array",
            "description": "Inline buyer objects, at most 500. Mutually exclusive with datasetId. Useful results follow unique completed prompts; duplicates keep source indexes. Opaque buyer record. Runtime: 64 KiB per row, depth 8, nested arrays at most 100 entries. Unsafe property paths and secret fields are rejected or removed. Runtime object limit: 200 properties.",
            "items": {
              "type": "object"
            }
          },
          "datasetId": {
            "title": "Buyer dataset ID",
            "pattern": "^[a-zA-Z0-9]{17}$",
            "maxLength": 17,
            "type": "string",
            "description": "Optional 17-character dataset ID read through your SDK permissions. Omit the inline items/rows property entirely when using this field. No dataset URLs. Pages <=100; total <=5000 rows and 10 MiB. Pick the dataset with the resource picker: under the Actor's limited permissions only a dataset referenced through this field is readable (a dataset ID typed elsewhere fails with dataset_read_failed)."
          },
          "fieldsToUse": {
            "title": "Fields available to the template",
            "maxItems": 20,
            "type": "array",
            "description": "Up to 20 dotted paths, each <=80 characters. Only these paths can appear in literal {{field}} placeholders. No functions or executable expressions.",
            "items": {
              "type": "string",
              "maxLength": 80,
              "minLength": 1
            }
          },
          "promptTemplate": {
            "title": "Literal prompt template",
            "maxLength": 8000,
            "type": "string",
            "description": "Insert selected fields using {{topic}} or another selected dotted path. No expression execution. Missing or empty referenced values yield a free not-found row.",
            "default": "用两句话解释{{topic}}的常见商业场景。"
          },
          "responseMode": {
            "title": "Answer format",
            "enum": [
              "text",
              "json_schema"
            ],
            "type": "string",
            "description": "Text accepts a nonempty completed answer. json_schema additionally requires a bounded supported schema and a matching parsed response.",
            "default": "text"
          },
          "jsonSchema": {
            "title": "Bounded response JSON schema",
            "maxProperties": 20,
            "type": "object",
            "description": "Only with json_schema mode. No $ref, patterns, combinators or remote references. Arrays require maxItems <=100. Maximum 16 KiB, depth 6 and 200 nodes."
          },
          "deduplicate": {
            "title": "Deduplicate final prompts",
            "type": "boolean",
            "description": "Identical final prompt, model and response settings share one paid Answer. Later input indexes are recorded in duplicateInputIndexes. Cross-run deduplication is not provided.",
            "default": true
          },
          "maxItems": {
            "title": "Maximum processed unique prompts",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Working cap after prompt deduplication, including failed or empty work. Platform additionally stops at 20 rows/tasks. Remaining jobs produce a free partial notice.",
            "default": 3
          },
          "apiKey": {
            "title": "Buyer API key (optional)",
            "type": "string",
            "description": "Optional buyer credential for the selected endpoint. Never copied to results. Empty uses the platform key only with OpenRouter. Buyer credentials are never replaced after a provider error. Runtime limit: 512 characters."
          },
          "baseUrl": {
            "title": "OpenAI-compatible base URL",
            "maxLength": 300,
            "type": "string",
            "description": "HTTPS base path, without /chat/completions. Only documented host/path pairs are accepted. Custom native endpoints require apiKey. Search supports OpenRouter only. No query, credentials, fragments or redirects.",
            "default": "https://openrouter.ai/api/v1"
          },
          "model": {
            "title": "Model ID",
            "maxLength": 100,
            "type": "string",
            "description": "Keyless: deepseek/deepseek-v4-flash or z-ai/glm-5.3-flash only. Qwen, Kimi and other model IDs require BYOK. The provider must support this model and operation.",
            "default": "deepseek/deepseek-v4-flash"
          },
          "reasoningMode": {
            "title": "Thinking mode (OpenRouter)",
            "enum": [
              "off",
              "low",
              "provider"
            ],
            "type": "string",
            "description": "OpenRouter only: off disables thinking, or uses low effort for z-ai/ models. Off-mode HTTP 400 retries with low effort, then provider defaults, within run caps. Direct endpoints retain provider thinking settings.",
            "default": "off"
          },
          "maxOutputTokens": {
            "title": "Maximum completion tokens",
            "minimum": 1,
            "maximum": 4096,
            "type": "integer",
            "description": "Upper completion allowance per call, including reasoning tokens. Default 768; platform hard maximum 1024; BYOK hard maximum 4096. Length-truncated answers are free incomplete results.",
            "default": 768
          },
          "maxTotalTokens": {
            "title": "Run token-unit limit",
            "minimum": 1,
            "maximum": 2000000,
            "type": "integer",
            "description": "UTF-8 message bytes plus completion reserve before each attempt, reconciled with valid usage afterward. Platform hard maximum 40000; BYOK 2000000. Unknown usage consumes full reserve.",
            "default": 40000
          },
          "temperature": {
            "title": "Temperature",
            "minimum": 0,
            "maximum": 2,
            "type": "number",
            "description": "Sampling temperature passed to the provider. Repeated runs can differ even at a low value. Does not establish factual correctness.",
            "default": 0.2
          },
          "maxConcurrency": {
            "title": "Concurrent LLM calls",
            "minimum": 1,
            "maximum": 1,
            "type": "integer",
            "description": "Version 1 processes one call at a time. Billing and delivery are serialized. Schedule citation comparisons without overlapping runs.",
            "default": 1
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}