Microsoft Azure · Example Payload

Microsoft Azure Completions Create Example

API ManagementCloudCloud ComputingEnterpriseInfrastructure as a ServicePlatform as a ServiceT1

Microsoft Azure Completions Create Example is an example object payload from Microsoft Azure, with 6 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

operationIdmethodpathsummaryrequestExamplesresponseExamples

Example Payload

Raw ↑
{
  "operationId": "Completions_Create",
  "method": "POST",
  "path": "/deployments/{deployment-id}/completions",
  "summary": "Microsoft Azure Create a Text Completion",
  "requestExamples": [
    {
      "contentType": "application/json",
      "name": "CompletionsCreateRequestExample",
      "example": {
        "prompt": "example_value",
        "max_tokens": 10,
        "temperature": 42.5,
        "top_p": 42.5,
        "n": 10,
        "stream": true,
        "stop": "example_value",
        "presence_penalty": 42.5,
        "frequency_penalty": 42.5,
        "user": "example_value"
      }
    }
  ],
  "responseExamples": [
    {
      "status": "200",
      "contentType": "application/json",
      "name": "CompletionsCreate200Example",
      "example": {
        "id": "abc123",
        "object": "text_completion",
        "created": 10,
        "model": "example_value",
        "choices": [
          {
            "text": "example_value",
            "index": 10,
            "finish_reason": "stop"
          }
        ],
        "usage": {
          "prompt_tokens": 10,
          "completion_tokens": 10,
          "total_tokens": 10
        }
      }
    },
    {
      "status": "default",
      "contentType": "application/json",
      "name": "CompletionsCreatedefaultExample",
      "example": {
        "error": {
          "code": "example_value",
          "message": "example_value",
          "param": "example_value",
          "type": "example_value",
          "inner_error": {
            "code": "example_value",
            "content_filter_result": "example_value"
          }
        }
      }
    }
  ]
}