Skip to main content
POST
Solve Sudoku Puzzle

Request contract

  • Method and path: POST /apis/v1/api-ninjas/solve-sudoku
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/api-ninjas/solve-sudoku
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Cost and request rules

Usage-based pricing. Default request estimate: $0.00089 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
height
integer
required

Height of each box in the Sudoku grid. Must be between 2 and 4. For standard 9x9 Sudoku, use height=3.

Required range: 2 <= x <= 4
Example:

3

puzzle
integer[][]
required

Sudoku puzzle grid. Use 0 for empty cells.

Example:
width
integer
required

Width of each box in the Sudoku grid. Must be between 2 and 4. For standard 9x9 Sudoku, use width=3.

Required range: 2 <= x <= 4
Example:

3

Response

Tool result data

status
string
required
solution
integer[][]