{"openapi":"3.1.0","info":{"title":"Apizie","version":"2.0.0","description":"One API key, one envelope, many public data sources."},"servers":[{"url":"https://apizie.tech"}],"security":[{"ApiKeyAuth":[]}],"paths":{"/v1/cloud:aliyun-aimath/chat-message":{"post":{"operationId":"cloud_aliyun_aimath_chat_message","summary":"Streams conversation messages in a math conversation. The caller sends the user's question as input, and the…","description":"POST /","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["ConversationId","Content","UserId"],"properties":{"endpoint":{"type":"string","enum":["https://aimath.aliyuncs.com"],"default":"https://aimath.aliyuncs.com","description":"Regional endpoint, for example https://aimath.aliyuncs.com"},"ConversationId":{"type":"string","description":"The conversation ID"},"Content":{"type":"string","description":"The conversation content"},"UserId":{"type":"string","description":"The user ID, which is used for conversation isolation. This value is defined by the caller and must be the same as the userId used when…"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-aimath/create-conversation":{"post":{"operationId":"cloud_aliyun_aimath_create_conversation","summary":"Creates a conversation for a specified exercise","description":"POST /","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["ExerciseContent","OuterBizId","UserId"],"properties":{"endpoint":{"type":"string","enum":["https://aimath.aliyuncs.com"],"default":"https://aimath.aliyuncs.com","description":"Regional endpoint, for example https://aimath.aliyuncs.com"},"ExerciseContent":{"type":"string","description":"The content of the exercise"},"ExerciseAnswer":{"type":"string","description":"The answer to the exercise"},"ExerciseAnalysis":{"type":"string","description":"The analysis of the exercise"},"ExerciseType":{"type":"string","description":"The type of the exercise. Valid values: single-choice, multiple-choice, application, true-or-false, and other"},"OuterBizId":{"type":"string","description":"The external business code that identifies an external service. This parameter is used for idempotence checks"},"UserId":{"type":"string","description":"The user ID or another ID that identifies the ownership of an isolated conversation. This parameter is defined by the caller"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-aimath/create-related-conversation":{"post":{"operationId":"cloud_aliyun_aimath_create_related_conversation","summary":"Creates an associated conversation. You can start a conversation by specifying an exercise code. This…","description":"POST /","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["ExerciseCode","UserId","OuterBizId"],"properties":{"endpoint":{"type":"string","enum":["https://aimath.aliyuncs.com"],"default":"https://aimath.aliyuncs.com","description":"Regional endpoint, for example https://aimath.aliyuncs.com"},"ExerciseCode":{"type":"string","description":"The exercise code"},"UserId":{"type":"string","description":"The user ID or another ID used to isolate session ownership, defined by the caller"},"OuterBizId":{"type":"string","description":"The external business order number. This is a unique identifier used for idempotence control and similar scenarios"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-aimath/gen-analysis":{"post":{"operationId":"cloud_aliyun_aimath_gen_analysis","summary":"Generates an analysis for solving a problem","description":"POST /","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["ExerciseContent"],"properties":{"endpoint":{"type":"string","enum":["https://aimath.aliyuncs.com"],"default":"https://aimath.aliyuncs.com","description":"Regional endpoint, for example https://aimath.aliyuncs.com"},"ExerciseContent":{"type":"string","description":"The exercise content in JSON format. Format description: ``` { \"answer\": \"等腰直角\", // The answer to the exercise \"content\": { \"description\":…"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-aimath/gen-step":{"post":{"operationId":"cloud_aliyun_aimath_gen_step","summary":"Generates mathematical problem-solving steps","description":"POST /","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["ExerciseCode"],"properties":{"endpoint":{"type":"string","enum":["https://aimath.aliyuncs.com"],"default":"https://aimath.aliyuncs.com","description":"Regional endpoint, for example https://aimath.aliyuncs.com"},"ExerciseCode":{"type":"string","description":"The exercise code"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-aimath/global-confirm":{"post":{"operationId":"cloud_aliyun_aimath_global_confirm","summary":"Confirms that the global revision is complete. After all content has been revised, call this operation to…","description":"POST /","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["ExerciseCode"],"properties":{"endpoint":{"type":"string","enum":["https://aimath.aliyuncs.com"],"default":"https://aimath.aliyuncs.com","description":"Regional endpoint, for example https://aimath.aliyuncs.com"},"ExerciseCode":{"type":"string","description":"The exercise content"},"Tag":{"type":"string","description":"The label value"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-aimath/update-analysis":{"post":{"operationId":"cloud_aliyun_aimath_update_analysis","summary":"Revises the solution analysis for an exercise","description":"POST /","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["ExerciseCode","ContentCode","Content"],"properties":{"endpoint":{"type":"string","enum":["https://aimath.aliyuncs.com"],"default":"https://aimath.aliyuncs.com","description":"Regional endpoint, for example https://aimath.aliyuncs.com"},"ExerciseCode":{"type":"string","description":"The exercise code"},"ContentCode":{"type":"string","description":"The content code"},"Content":{"type":"string","description":"The new solution analysis"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-aimath/update-step":{"post":{"operationId":"cloud_aliyun_aimath_update_step","summary":"Revise solution steps","description":"POST /","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["ExerciseCode","ContentCode","Content"],"properties":{"endpoint":{"type":"string","enum":["https://aimath.aliyuncs.com"],"default":"https://aimath.aliyuncs.com","description":"Regional endpoint, for example https://aimath.aliyuncs.com"},"ExerciseCode":{"type":"string","description":"Exercise code"},"ContentCode":{"type":"string","description":"Content code"},"Content":{"type":"string","description":"New solution steps"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-aimath/version":{"post":{"operationId":"cloud_aliyun_aimath_version","summary":"version","description":"POST /","tags":["cloud"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"endpoint":{"type":"string","enum":["https://aimath.aliyuncs.com"],"default":"https://aimath.aliyuncs.com","description":"Regional endpoint, for example https://aimath.aliyuncs.com"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}}},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key"}},"schemas":{"RunEnvelope":{"type":"object","required":["project","data","timestamp"],"properties":{"project":{"type":"string","example":"dev-tools:hash"},"data":{},"timestamp":{"type":"string","format":"date-time"}}},"ErrorEnvelope":{"type":"object","properties":{"content":{},"message":{"type":"string"},"errors":{"type":"array","items":{}},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"responses":{"Error":{"description":"Invalid key, plan gate, rate limit or upstream failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}