prompts

Create a new prompt

Create a new prompt and its initial version. A prompt can have multiple versions.

post/v1/prompts

Request body

Response

The newly created prompt version

Changes

Changed in 3 of the 70 revisions of this API.45466

    • added PromptToolRaw to the data/tools/anyOf[subschema #1: PromptTools]/tools/items/ response property oneOf list for the response status 200

      response-property-one-of-added

    • added raw discriminator mapping keys to the version/tools/anyOf[subschema #1: PromptTools]/tools/items/ request property

      request-property-discriminator-mapping-added

    • added PromptToolRaw to the version/tools/anyOf[subschema #1: PromptTools]/tools/items/ request property oneOf list

      request-property-one-of-added

    • added raw discriminator mapping keys to the data/tools/anyOf[subschema #1: PromptTools]/tools/items/ response property for the response status 200

      response-property-discriminator-mapping-added

  • 885be87470ca157See the full diff
    • added PromptAnthropicThinkingConfigAdaptive to the data/invocation_parameters/oneOf[subschema #3: PromptAnthropicInvocationParameters]/anthropic/thinking response property oneOf list for the response status 200

      response-property-one-of-added

    • added the new optional request property version/invocation_parameters/oneOf[subschema #10: PromptFireworksInvocationParameters]/fireworks/extra_body

      new-optional-request-property

    • added the new optional request property version/invocation_parameters/oneOf[subschema #10: PromptFireworksInvocationParameters]/fireworks/stop

      new-optional-request-property

    • added the new optional request property version/invocation_parameters/oneOf[subschema #11: PromptGroqInvocationParameters]/groq/extra_body

      new-optional-request-property

    • added the new optional request property version/invocation_parameters/oneOf[subschema #11: PromptGroqInvocationParameters]/groq/stop

      new-optional-request-property

    • added the new optional request property version/invocation_parameters/oneOf[subschema #12: PromptMoonshotInvocationParameters]/moonshot/extra_body

      new-optional-request-property

    • added the new optional request property version/invocation_parameters/oneOf[subschema #12: PromptMoonshotInvocationParameters]/moonshot/stop

      new-optional-request-property

    • added the new optional request property version/invocation_parameters/oneOf[subschema #13: PromptPerplexityInvocationParameters]/perplexity/extra_body

      new-optional-request-property

    • added the new optional request property version/invocation_parameters/oneOf[subschema #13: PromptPerplexityInvocationParameters]/perplexity/stop

      new-optional-request-property

    • added the new optional request property version/invocation_parameters/oneOf[subschema #14: PromptTogetherInvocationParameters]/together/extra_body

      new-optional-request-property

    • added the new optional request property version/invocation_parameters/oneOf[subschema #14: PromptTogetherInvocationParameters]/together/stop

      new-optional-request-property

    • added the new optional request property version/invocation_parameters/oneOf[subschema #1: PromptOpenAIInvocationParameters]/openai/extra_body

      new-optional-request-property

    • added the new optional request property version/invocation_parameters/oneOf[subschema #1: PromptOpenAIInvocationParameters]/openai/stop

      new-optional-request-property

    • added the new optional request property version/invocation_parameters/oneOf[subschema #2: PromptAzureOpenAIInvocationParameters]/azure_openai/extra_body

      new-optional-request-property

    • added the new optional request property version/invocation_parameters/oneOf[subschema #2: PromptAzureOpenAIInvocationParameters]/azure_openai/stop

      new-optional-request-property

    • added the new optional request property version/invocation_parameters/oneOf[subschema #3: PromptAnthropicInvocationParameters]/anthropic/extra_body

      new-optional-request-property

    • added the new optional request property version/invocation_parameters/oneOf[subschema #3: PromptAnthropicInvocationParameters]/anthropic/output_config

      new-optional-request-property

    • added the new optional request property version/invocation_parameters/oneOf[subschema #3: PromptAnthropicInvocationParameters]/anthropic/thinking/oneOf[subschema #2: PromptAnthropicThinkingConfigEnabled]/display

      new-optional-request-property

    • added the new optional request property version/invocation_parameters/oneOf[subschema #4: PromptGoogleInvocationParameters]/google/thinking_config

      new-optional-request-property

    • added the new optional request property version/invocation_parameters/oneOf[subschema #5: PromptDeepSeekInvocationParameters]/deepseek/extra_body

      new-optional-request-property

    • added the new optional request property version/invocation_parameters/oneOf[subschema #5: PromptDeepSeekInvocationParameters]/deepseek/stop

      new-optional-request-property

    • added the new optional request property version/invocation_parameters/oneOf[subschema #6: PromptXAIInvocationParameters]/xai/extra_body

      new-optional-request-property

    • added the new optional request property version/invocation_parameters/oneOf[subschema #6: PromptXAIInvocationParameters]/xai/stop

      new-optional-request-property

    • added the new optional request property version/invocation_parameters/oneOf[subschema #7: PromptOllamaInvocationParameters]/ollama/extra_body

      new-optional-request-property

    • added the new optional request property version/invocation_parameters/oneOf[subschema #7: PromptOllamaInvocationParameters]/ollama/stop

      new-optional-request-property

    • added the new optional request property version/invocation_parameters/oneOf[subschema #8: PromptAwsInvocationParameters]/aws/stop_sequences

      new-optional-request-property

    • added the new optional request property version/invocation_parameters/oneOf[subschema #9: PromptCerebrasInvocationParameters]/cerebras/extra_body

      new-optional-request-property

    • added the new optional request property version/invocation_parameters/oneOf[subschema #9: PromptCerebrasInvocationParameters]/cerebras/stop

      new-optional-request-property

    • added adaptive discriminator mapping keys to the version/invocation_parameters/oneOf[subschema #3: PromptAnthropicInvocationParameters]/anthropic/thinking request property

      request-property-discriminator-mapping-added

    • added PromptAnthropicThinkingConfigAdaptive to the version/invocation_parameters/oneOf[subschema #3: PromptAnthropicInvocationParameters]/anthropic/thinking request property oneOf list

      request-property-one-of-added

    • added the optional property data/invocation_parameters/oneOf[subschema #10: PromptFireworksInvocationParameters]/fireworks/extra_body to the response with the 200 status

      response-optional-property-added

    • added the optional property data/invocation_parameters/oneOf[subschema #10: PromptFireworksInvocationParameters]/fireworks/stop to the response with the 200 status

      response-optional-property-added

    • added the optional property data/invocation_parameters/oneOf[subschema #11: PromptGroqInvocationParameters]/groq/extra_body to the response with the 200 status

      response-optional-property-added

    • added the optional property data/invocation_parameters/oneOf[subschema #11: PromptGroqInvocationParameters]/groq/stop to the response with the 200 status

      response-optional-property-added

    • added the optional property data/invocation_parameters/oneOf[subschema #12: PromptMoonshotInvocationParameters]/moonshot/extra_body to the response with the 200 status

      response-optional-property-added

    • added the optional property data/invocation_parameters/oneOf[subschema #12: PromptMoonshotInvocationParameters]/moonshot/stop to the response with the 200 status

      response-optional-property-added

    • added the optional property data/invocation_parameters/oneOf[subschema #13: PromptPerplexityInvocationParameters]/perplexity/extra_body to the response with the 200 status

      response-optional-property-added

    • added the optional property data/invocation_parameters/oneOf[subschema #13: PromptPerplexityInvocationParameters]/perplexity/stop to the response with the 200 status

      response-optional-property-added

    • added the optional property data/invocation_parameters/oneOf[subschema #14: PromptTogetherInvocationParameters]/together/extra_body to the response with the 200 status

      response-optional-property-added

    • added the optional property data/invocation_parameters/oneOf[subschema #14: PromptTogetherInvocationParameters]/together/stop to the response with the 200 status

      response-optional-property-added

    • added the optional property data/invocation_parameters/oneOf[subschema #1: PromptOpenAIInvocationParameters]/openai/extra_body to the response with the 200 status

      response-optional-property-added

    • added the optional property data/invocation_parameters/oneOf[subschema #1: PromptOpenAIInvocationParameters]/openai/stop to the response with the 200 status

      response-optional-property-added

    • added the optional property data/invocation_parameters/oneOf[subschema #2: PromptAzureOpenAIInvocationParameters]/azure_openai/extra_body to the response with the 200 status

      response-optional-property-added

    • added the optional property data/invocation_parameters/oneOf[subschema #2: PromptAzureOpenAIInvocationParameters]/azure_openai/stop to the response with the 200 status

      response-optional-property-added

    • added the optional property data/invocation_parameters/oneOf[subschema #3: PromptAnthropicInvocationParameters]/anthropic/extra_body to the response with the 200 status

      response-optional-property-added

    • added the optional property data/invocation_parameters/oneOf[subschema #3: PromptAnthropicInvocationParameters]/anthropic/output_config to the response with the 200 status

      response-optional-property-added

    • added the optional property data/invocation_parameters/oneOf[subschema #3: PromptAnthropicInvocationParameters]/anthropic/thinking/oneOf[subschema #2: PromptAnthropicThinkingConfigEnabled]/display to the response with the 200 status

      response-optional-property-added

    • added the optional property data/invocation_parameters/oneOf[subschema #4: PromptGoogleInvocationParameters]/google/thinking_config to the response with the 200 status

      response-optional-property-added

    • added the optional property data/invocation_parameters/oneOf[subschema #5: PromptDeepSeekInvocationParameters]/deepseek/extra_body to the response with the 200 status

      response-optional-property-added

    • added the optional property data/invocation_parameters/oneOf[subschema #5: PromptDeepSeekInvocationParameters]/deepseek/stop to the response with the 200 status

      response-optional-property-added

    • added the optional property data/invocation_parameters/oneOf[subschema #6: PromptXAIInvocationParameters]/xai/extra_body to the response with the 200 status

      response-optional-property-added

    • added the optional property data/invocation_parameters/oneOf[subschema #6: PromptXAIInvocationParameters]/xai/stop to the response with the 200 status

      response-optional-property-added

    • added the optional property data/invocation_parameters/oneOf[subschema #7: PromptOllamaInvocationParameters]/ollama/extra_body to the response with the 200 status

      response-optional-property-added

    • added the optional property data/invocation_parameters/oneOf[subschema #7: PromptOllamaInvocationParameters]/ollama/stop to the response with the 200 status

      response-optional-property-added

    • added the optional property data/invocation_parameters/oneOf[subschema #8: PromptAwsInvocationParameters]/aws/stop_sequences to the response with the 200 status

      response-optional-property-added

    • added the optional property data/invocation_parameters/oneOf[subschema #9: PromptCerebrasInvocationParameters]/cerebras/extra_body to the response with the 200 status

      response-optional-property-added

    • added the optional property data/invocation_parameters/oneOf[subschema #9: PromptCerebrasInvocationParameters]/cerebras/stop to the response with the 200 status

      response-optional-property-added

    • added adaptive discriminator mapping keys to the data/invocation_parameters/oneOf[subschema #3: PromptAnthropicInvocationParameters]/anthropic/thinking response property for the response status 200

      response-property-discriminator-mapping-added

  • c81391216eb52546See the full diff
    • removed PromptAnthropicThinkingConfigAdaptive from the version/invocation_parameters/oneOf[subschema #3: PromptAnthropicInvocationParameters]/anthropic/thinking request property oneOf list

      request-property-one-of-removed

    • removed PromptToolRaw from the version/tools/anyOf[subschema #1: PromptTools]/tools/items/ request property oneOf list

      request-property-one-of-removed

    • removed the request property version/invocation_parameters/oneOf[subschema #10: PromptFireworksInvocationParameters]/fireworks/extra_body

      request-property-removed

    • removed the request property version/invocation_parameters/oneOf[subschema #10: PromptFireworksInvocationParameters]/fireworks/stop

      request-property-removed

    • removed the request property version/invocation_parameters/oneOf[subschema #11: PromptGroqInvocationParameters]/groq/extra_body

      request-property-removed

    • removed the request property version/invocation_parameters/oneOf[subschema #11: PromptGroqInvocationParameters]/groq/stop

      request-property-removed

    • removed the request property version/invocation_parameters/oneOf[subschema #12: PromptMoonshotInvocationParameters]/moonshot/extra_body

      request-property-removed

    • removed the request property version/invocation_parameters/oneOf[subschema #12: PromptMoonshotInvocationParameters]/moonshot/stop

      request-property-removed

    • removed the request property version/invocation_parameters/oneOf[subschema #13: PromptPerplexityInvocationParameters]/perplexity/extra_body

      request-property-removed

    • removed the request property version/invocation_parameters/oneOf[subschema #13: PromptPerplexityInvocationParameters]/perplexity/stop

      request-property-removed

    • removed the request property version/invocation_parameters/oneOf[subschema #14: PromptTogetherInvocationParameters]/together/extra_body

      request-property-removed

    • removed the request property version/invocation_parameters/oneOf[subschema #14: PromptTogetherInvocationParameters]/together/stop

      request-property-removed

    • removed the request property version/invocation_parameters/oneOf[subschema #1: PromptOpenAIInvocationParameters]/openai/extra_body

      request-property-removed

    • removed the request property version/invocation_parameters/oneOf[subschema #1: PromptOpenAIInvocationParameters]/openai/stop

      request-property-removed

    • removed the request property version/invocation_parameters/oneOf[subschema #2: PromptAzureOpenAIInvocationParameters]/azure_openai/extra_body

      request-property-removed

    • removed the request property version/invocation_parameters/oneOf[subschema #2: PromptAzureOpenAIInvocationParameters]/azure_openai/stop

      request-property-removed

    • removed the request property version/invocation_parameters/oneOf[subschema #3: PromptAnthropicInvocationParameters]/anthropic/extra_body

      request-property-removed

    • removed the request property version/invocation_parameters/oneOf[subschema #3: PromptAnthropicInvocationParameters]/anthropic/output_config

      request-property-removed

    • removed the request property version/invocation_parameters/oneOf[subschema #3: PromptAnthropicInvocationParameters]/anthropic/thinking/oneOf[subschema #2: PromptAnthropicThinkingConfigEnabled]/display

      request-property-removed

    • removed the request property version/invocation_parameters/oneOf[subschema #4: PromptGoogleInvocationParameters]/google/thinking_config

      request-property-removed

    • removed the request property version/invocation_parameters/oneOf[subschema #5: PromptDeepSeekInvocationParameters]/deepseek/extra_body

      request-property-removed

    • removed the request property version/invocation_parameters/oneOf[subschema #5: PromptDeepSeekInvocationParameters]/deepseek/stop

      request-property-removed

    • removed the request property version/invocation_parameters/oneOf[subschema #6: PromptXAIInvocationParameters]/xai/extra_body

      request-property-removed

    • removed the request property version/invocation_parameters/oneOf[subschema #6: PromptXAIInvocationParameters]/xai/stop

      request-property-removed

    • removed the request property version/invocation_parameters/oneOf[subschema #7: PromptOllamaInvocationParameters]/ollama/extra_body

      request-property-removed

    • removed the request property version/invocation_parameters/oneOf[subschema #7: PromptOllamaInvocationParameters]/ollama/stop

      request-property-removed

    • removed the request property version/invocation_parameters/oneOf[subschema #8: PromptAwsInvocationParameters]/aws/stop_sequences

      request-property-removed

    • removed the request property version/invocation_parameters/oneOf[subschema #9: PromptCerebrasInvocationParameters]/cerebras/extra_body

      request-property-removed

    • removed the request property version/invocation_parameters/oneOf[subschema #9: PromptCerebrasInvocationParameters]/cerebras/stop

      request-property-removed

    • removed the optional property data/invocation_parameters/oneOf[subschema #10: PromptFireworksInvocationParameters]/fireworks/extra_body from the response with the 200 status

      response-optional-property-removed

    • removed the optional property data/invocation_parameters/oneOf[subschema #10: PromptFireworksInvocationParameters]/fireworks/stop from the response with the 200 status

      response-optional-property-removed

    • removed the optional property data/invocation_parameters/oneOf[subschema #11: PromptGroqInvocationParameters]/groq/extra_body from the response with the 200 status

      response-optional-property-removed

    • removed the optional property data/invocation_parameters/oneOf[subschema #11: PromptGroqInvocationParameters]/groq/stop from the response with the 200 status

      response-optional-property-removed

    • removed the optional property data/invocation_parameters/oneOf[subschema #12: PromptMoonshotInvocationParameters]/moonshot/extra_body from the response with the 200 status

      response-optional-property-removed

    • removed the optional property data/invocation_parameters/oneOf[subschema #12: PromptMoonshotInvocationParameters]/moonshot/stop from the response with the 200 status

      response-optional-property-removed

    • removed the optional property data/invocation_parameters/oneOf[subschema #13: PromptPerplexityInvocationParameters]/perplexity/extra_body from the response with the 200 status

      response-optional-property-removed

    • removed the optional property data/invocation_parameters/oneOf[subschema #13: PromptPerplexityInvocationParameters]/perplexity/stop from the response with the 200 status

      response-optional-property-removed

    • removed the optional property data/invocation_parameters/oneOf[subschema #14: PromptTogetherInvocationParameters]/together/extra_body from the response with the 200 status

      response-optional-property-removed

    • removed the optional property data/invocation_parameters/oneOf[subschema #14: PromptTogetherInvocationParameters]/together/stop from the response with the 200 status

      response-optional-property-removed

    • removed the optional property data/invocation_parameters/oneOf[subschema #1: PromptOpenAIInvocationParameters]/openai/extra_body from the response with the 200 status

      response-optional-property-removed

    • removed the optional property data/invocation_parameters/oneOf[subschema #1: PromptOpenAIInvocationParameters]/openai/stop from the response with the 200 status

      response-optional-property-removed

    • removed the optional property data/invocation_parameters/oneOf[subschema #2: PromptAzureOpenAIInvocationParameters]/azure_openai/extra_body from the response with the 200 status

      response-optional-property-removed

    • removed the optional property data/invocation_parameters/oneOf[subschema #2: PromptAzureOpenAIInvocationParameters]/azure_openai/stop from the response with the 200 status

      response-optional-property-removed

    • removed the optional property data/invocation_parameters/oneOf[subschema #3: PromptAnthropicInvocationParameters]/anthropic/extra_body from the response with the 200 status

      response-optional-property-removed

    • removed the optional property data/invocation_parameters/oneOf[subschema #3: PromptAnthropicInvocationParameters]/anthropic/output_config from the response with the 200 status

      response-optional-property-removed

    • removed the optional property data/invocation_parameters/oneOf[subschema #3: PromptAnthropicInvocationParameters]/anthropic/thinking/oneOf[subschema #2: PromptAnthropicThinkingConfigEnabled]/display from the response with the 200 status

      response-optional-property-removed

    • removed the optional property data/invocation_parameters/oneOf[subschema #4: PromptGoogleInvocationParameters]/google/thinking_config from the response with the 200 status

      response-optional-property-removed

    • removed the optional property data/invocation_parameters/oneOf[subschema #5: PromptDeepSeekInvocationParameters]/deepseek/extra_body from the response with the 200 status

      response-optional-property-removed

    • removed the optional property data/invocation_parameters/oneOf[subschema #5: PromptDeepSeekInvocationParameters]/deepseek/stop from the response with the 200 status

      response-optional-property-removed

    • removed the optional property data/invocation_parameters/oneOf[subschema #6: PromptXAIInvocationParameters]/xai/extra_body from the response with the 200 status

      response-optional-property-removed

    • removed the optional property data/invocation_parameters/oneOf[subschema #6: PromptXAIInvocationParameters]/xai/stop from the response with the 200 status

      response-optional-property-removed

    • removed the optional property data/invocation_parameters/oneOf[subschema #7: PromptOllamaInvocationParameters]/ollama/extra_body from the response with the 200 status

      response-optional-property-removed

    • removed the optional property data/invocation_parameters/oneOf[subschema #7: PromptOllamaInvocationParameters]/ollama/stop from the response with the 200 status

      response-optional-property-removed

    • removed the optional property data/invocation_parameters/oneOf[subschema #8: PromptAwsInvocationParameters]/aws/stop_sequences from the response with the 200 status

      response-optional-property-removed

    • removed the optional property data/invocation_parameters/oneOf[subschema #9: PromptCerebrasInvocationParameters]/cerebras/extra_body from the response with the 200 status

      response-optional-property-removed

    • removed the optional property data/invocation_parameters/oneOf[subschema #9: PromptCerebrasInvocationParameters]/cerebras/stop from the response with the 200 status

      response-optional-property-removed

    • removed adaptive discriminator mapping keys from the version/invocation_parameters/oneOf[subschema #3: PromptAnthropicInvocationParameters]/anthropic/thinking request property

      request-property-discriminator-mapping-deleted

    • removed raw discriminator mapping keys from the version/tools/anyOf[subschema #1: PromptTools]/tools/items/ request property

      request-property-discriminator-mapping-deleted

    • removed adaptive discriminator mapping keys from the data/invocation_parameters/oneOf[subschema #3: PromptAnthropicInvocationParameters]/anthropic/thinking response property for the response status 200

      response-property-discriminator-mapping-deleted

    • removed raw discriminator mapping keys from the data/tools/anyOf[subschema #1: PromptTools]/tools/items/ response property for the response status 200

      response-property-discriminator-mapping-deleted

    • removed PromptAnthropicThinkingConfigAdaptive from the data/invocation_parameters/oneOf[subschema #3: PromptAnthropicInvocationParameters]/anthropic/thinking response property oneOf list for the response status 200

      response-property-one-of-removed

    • removed PromptToolRaw from the data/tools/anyOf[subschema #1: PromptTools]/tools/items/ response property oneOf list for the response status 200

      response-property-one-of-removed

    This revision also has 91 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog