This API provides a simple interface to interact with AI models focused on blockchain technology. It has two endpoints: /
and /ask
.
This endpoint is used to check the status of the API. It returns a simple string "Welcome to the Unamed Blockchain AI"
.
This endpoint is used to ask a question to the AI model. It accepts the following query parameters:
question
(required): The question you want to ask the AI model.model
(required): The name of the AI model you want to use. Supported models aresolidity
,ethereum
, andbitcoin
.master_key
(required): Your key to authenticate with the service.api_key
(optional): Flock api key for faster generation
POST /ask?question=Hello&model=solidity&master_key=master_key&api_key=flock_key
- 200 OK: The AI model's response to the question.
- 404 Not Found: If the specified
model
does not exist (i.e., not one ofsolidity
,ethereum
, orbitcoin
), the API will return"This model does not exist"
with a 404 status code. - 401 unauthorized: Your master_key is not valid.