x402

Code Convert (x402)

Convert code between programming languages. Uses idiomatic patterns for the target language. Supports all major languages.

post/x402/v2/code-convert

Request

  • Base URL: https://api.strale.io
  • URL: https://api.strale.io/x402/v2/code-convert
  • Auth: none required

Request body

codestring required
to_languagestring required
from_languagestring

Response

Success

confidencestring
converted_codestring
source_languagestring
target_languagestring

Example response

{
  "confidence": "high",
  "converted_code": "function hello() { return 'world'; }",
  "source_language": "en",
  "target_language": "en",
  "conversion_notes": [
    "Source and target languages are identical; no conversion needed"
  ],
  "dependencies_needed": []
}

Changes

No recorded changes to this operation across all 1 revision of this API.