API key setup as a student

Hello,

I have been trying for several days now to get the API up and running.

I have this test script:


from dlubal.api import rfem, common

with rfem.Application(api_key_name="project_1", api_key_value="ak-..KEY", port=9000) as rfem_app:

    # Create new model
    rfem_app.create_model(name="demo_model")

    # Create model object
    rfem_app.create_object(
       rfem.structure_core.Node(
          coordinate_1 = 3.0
       )
    )

With the classic error:

RuntimeError: gRPC connection check failed (UNAUTHENTICATED) for '127.0.0.1:9000'. Authentication failed. Check that the API key is present, valid, and not expired. Original gRPC details: API access has been restricted. Your company does not have permission to use the Dlubal API Service, or the limits defined in your subscription plan have been exceeded.

My versions are:
RFEM 6.14.0011
Python 3.13.5
pip 25.1.1
dlubal.api 2.14.11

I created my API key, it is activated and I checked that I do not have the trial version
activated in the License Manager but my student version. Also, in RFEM the PORT for gRPC is set to 9000.

What else should I check? Every example I go through doesn't help me further.

Regards, Johannes

Hi johannes.post,

welcome to the Dlubal Community!

Thank you for the detailed troubleshooting! The problem was in our registration software – I have just activated your account. It should work now.

If something is still not right, let me know!

Best regards
Florian Heinrich