Service Name :

Oryza Model API

Spec :

This is an API for running Oryza

Please prepare the model input data in compressed file format

Service URL:

https://oryza-api.camp.re.kr/Oryza/

Step 1. getSample

Download the sample input file to run th model

You can try the getSample command by entering the api_key entry and clicking the "Run" button.
When using python, you can use it like this.
res = requests.post(url="https://oryza-api.camp.re.kr/Oryza/getSample", json={api_key = "your_api_key_here"})



Step 2. connect

Create a session necessary to run the model and receive the ID value.

You can try using the connect command by entering the api_key item and clicking the "Run" button.
When using python, you can use it like this.
res = requests.post(url="https://oryza-api.camp.re.kr/Oryza/connect", json={api_key = "your_api_key_here"})



Step 3. launch

Run the model using the job ID and api_key created in step 2.
Please compress the model input files into one zip file and attach it.

Please enter the api_key and jobid items and attach the zipped input file.
You can try using the launch command by clicking the "Run" button.
When using python, you can use it like this.
res = requests.post(url="https://oryza-api.camp.re.kr/Oryza/launch",
json={api_key = "your_api_key_here", key="your_jobid", file="your_encoded_file"})
*Please encode the input file into base64 and add it to json.




Step 4. getStatus

Use the api_key value and the ID value to check whether model operation has been completed.

You can try using the getStatus command by entering the api_key and jobid items and clicking the "Run" button.
When using python, you can use it like this.
res = requests.post(url="https://oryza-api.camp.re.kr/Oryza/getStatus",
json={api_key = "your_api_key_here", key="your_jobid"})



Step 5. getOutput

Download the model output file using the api_key value and the ID value.

You can try using the getOutput command by entering the api_key and jobid items and clicking the "Run" button.
When using python, you can use it like this.
res = requests.post(url="https://oryza-api.camp.re.kr/Oryza/getOutput",
json={api_key = "your_api_key_here", key="your_jobid"})



Step 6. disconnet

Terminates the model.

You can try using the disconnect command by entering the api_key and jobid items and clicking the "Run" button.
When using python, you can use it like this.
res = requests.post(url="https://oryza-api.camp.re.kr/Oryza/disconnect",
json={api_key = "your_api_key_here", key="your_jobid"})